-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enable multi discovery strategy #492
feat: enable multi discovery strategy #492
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a small comment on where ther accountDiscovery
needed to present on other RPC or not
const account = await invokeSnap<Account>({ | ||
method: 'starkNet_addAccount', | ||
params: { | ||
chainId, | ||
accountDiscoveryType: urlParams.get('accountDiscovery'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not do those inject from the invokeSnap function? i guess when force deploy/upgrade, u still need that? or no
Quality Gate passed for 'consensys_starknet-snap-wallet-ui'Issues Measures |
Quality Gate passed for 'consensys_starknet-snap-starknet-snap'Issues Measures |
Already deployed to staging can be closed. |
Description
This PR enhances the Snap by introducing support for multiple account discovery strategies within the same version, now with an improved user interface for better usability. Users can specify the desired strategy via a URL parameter called accountDiscovery. Additionally, the interface dynamically updates to highlight the selected strategy and provides a more user-friendly way to switch between options.
Key Features:
See the video below for an example
Screen.Recording.2025-01-22.at.21.46.58.mov