-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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: add entropySource to non-evm accounts #30549
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [ccfc68d]
Page Load Metrics (1762 ± 88 ms)
|
ccfc68d
to
a6ccbb8
Compare
a6ccbb8
to
b7e2608
Compare
b7e2608
to
0979f7a
Compare
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.
Passes manual tests
Builds ready [0979f7a]
Page Load Metrics (1595 ± 53 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Co-authored-by: Charly Chevalier <[email protected]>
Co-authored-by: Charly Chevalier <[email protected]>
bc9ebbf
to
857d9e1
Compare
Co-authored-by: Charly Chevalier <[email protected]>
857d9e1
to
2b0dda9
Compare
await bitcoinWalletSnapClient.createAccount(network); | ||
await bitcoinWalletSnapClient.createAccount( | ||
network, | ||
primaryKeyring.metadata.id, |
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.
Current Bitcoin Snap does not support this entropySource
and will throw an error if we pass it there.
Since we're about to use our new version of the Snap, we might wanna support this too.
For now, Bitcoin support is disabled, so this won't break anything (unless we use the bitcoin
build flag + create an account).
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.
Maybe we should leave it unchanged for Bitcoin for now
Tested on my side, not approving the PR for now (just waiting for some internal decision about the Bitcoin case). $ jq '.metamask | {keyrings, keyringsMetadata}'
{
"keyrings": [
{
"type": "HD Key Tree",
"accounts": [
"0xb5e5196de890271ba5f6c696fb0abbc7d3a5c6c5"
]
},
{
"type": "Snap Keyring",
"accounts": [
"4wRTxSXApFzKS4tk4fqQiEcSYe43NyYX1Xvh6VhzfkkE",
"JDSQGLPQ9RCcXrvaxZiayoWzMo4FktaywDDJcBTQktyr"
]
}
],
"keyringsMetadata": [
{
"id": "01JN1M20V7KEFB8W68WH7A9173",
"name": ""
},
{
"id": "01JN1M29DZ4052VGS2GFMEWP97",
"name": ""
}
]
} $ jq '.metamask.internalAccounts.accounts | to_entries[] | .value.options' state.json
{}
{
"scope": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"entropySource": "01JN1M20V7KEFB8W68WH7A9173"
}
{
"scope": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"entropySource": "01JN1M20V7KEFB8W68WH7A9173"
} |
ui/components/multichain/account-list-menu/account-list-menu.tsx
Outdated
Show resolved
Hide resolved
ui/components/multichain/account-list-menu/account-list-menu.tsx
Outdated
Show resolved
Hide resolved
Builds ready [2b0dda9]
Page Load Metrics (1592 ± 57 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Co-authored-by: Charly Chevalier <[email protected]>
Co-authored-by: Charly Chevalier <[email protected]>
Builds ready [ca84bad]
Page Load Metrics (1746 ± 63 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Adds
entropySource
to non-EVM accounts to ensure that the primary keyring ID is provided to the Solana snap during account creation. This will help maintain compatibility for the multi-SRP feature, even though we are not using it yet.Manual testing steps
yarn start:flask
AccountsController
store (metamask.accounts
)Screenshots/Recordings
Before
After
Expected behaviour
entropySource
should be present inaccount.options
Pre-merge author checklist
Pre-merge reviewer checklist