Skip to content

Commit 3746679

Browse files
authored
feat(keyring-snap-bridge): add setSelectedAccount internal option (#257)
Requires: - [x] #252 New flag to be able to not select the account at the end of the account creation flow.
1 parent 0a893d7 commit 3746679

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/keyring-snap-bridge/src/options.ts

+7
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ export type SnapKeyringInternalOptions = {
1616
* unique.
1717
*/
1818
displayAccountNameSuggestion?: boolean;
19+
20+
/**
21+
* Instructs MetaMask to not select the account at the end of a create account
22+
* flow.
23+
*/
24+
setSelectedAccount?: boolean;
1925
};
2026

2127
/**
@@ -27,5 +33,6 @@ export function getDefaultInternalOptions(): Required<SnapKeyringInternalOptions
2733
return {
2834
displayAccountNameSuggestion: true,
2935
displayConfirmation: true,
36+
setSelectedAccount: true,
3037
};
3138
}

0 commit comments

Comments
 (0)