generated from MetaMask/metamask-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(keyring-snap-bridge): add
displayAccountNameSuggestion
flag (#213
) ## Background Some preinstalled snaps (such as the institutional snap, and some non EVMs) may need to create accounts non-interactively. Additionally, the profile sync feature might require accounts to be restored without user input. Users normally are asked to name their snap accounts, but this isn't appropriate where a canonical name exists. This adds `displayAccountNameDialog` similar to `displayConfirmation` It's intended that similar logic would be used in the client that is used for displayConfirmation ([extension code](https://github.com/MetaMask/metamask-extension/blob/2ca6b570a3580fa8b7dd18af492e8c1db702d814/app/scripts/lib/snap-keyring/snap-keyring.ts#L208)), i.e. it would default to true, and negation would only be allowed in the case of preinstalled snaps. ## Examples - Institutional snap gets names from custodians, so users need not be asked to enter names - The designs for Multi-SRP have the user pick a name for an account as they are choosing the SRP, so before the snap invocation * Fixes: Jira ticket [https://consensyssoftware.atlassian.net/browse/MMMULTISRP-56](MMMULTISRP-56) --------- Co-authored-by: Charly Chevalier <[email protected]> Co-authored-by: Daniel Rocha <[email protected]>
- Loading branch information
1 parent
0abfd7f
commit 925efd8
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters