-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Remove eth-keyring-controller
use from MetamaskController
#20504
Remove eth-keyring-controller
use from MetamaskController
#20504
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. |
8b95f54
to
d344faf
Compare
eth-keyring-controller
use from MetamaskController
5a68ad1
to
0a51549
Compare
c0170e6
to
c921094
Compare
Updated and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: @metamask/[email protected] |
a903e51
to
ad7f9ac
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
3d7823d
to
d1f00a0
Compare
await metamaskController.coreKeyringController.createNewVaultAndRestore( | ||
'password', | ||
TEST_SEED, | ||
); |
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.
We can't really test anything properly without a vault and an unlocked KeyringController
.
.yarn/patches/@metamask-keyring-controller-npm-8.0.0-806630ae4e.patch
Outdated
Show resolved
Hide resolved
9a19494
to
579f639
Compare
@@ -245,7 +245,7 @@ | |||
"@metamask/design-tokens": "^1.12.0", | |||
"@metamask/desktop": "^0.3.0", | |||
"@metamask/eth-json-rpc-middleware": "^11.0.0", | |||
"@metamask/eth-keyring-controller": "^10.0.1", | |||
"@metamask/eth-keyring-controller": "^13.0.1", |
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.
This is kept here for keyringBuilderFactory
only
@metamaskbot update-policies |
Policies updated |
7f27e19
to
351a6cb
Compare
01d1761
to
cff1339
Compare
Builds ready [cff1339]
Page Load Metrics (703 ± 360 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. Ignoring: Next stepsTake a deeper look at the dependencyTake a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev. Remove the packageIf you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency. Mark a package as acceptable riskTo ignore an alert, reply with a comment starting with |
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.
LGTM!
This is our package, |
@metamaskbot update-policies |
Policies updated |
Builds ready [9eaabf7]
Page Load Metrics (606 ± 336 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Explanation
This PR removes the leftover
EthKeyringController
interactions fromMetamaskController
.@metamask/signature-controller
to^6.0.0
along with its patch@metamask/eth-keyring-controller
fromMetamaskController
@metamask/keyring-controller
createNewVaultAndKeychain
test assertion slightly changedpreferencesController.removeAddress
mocked to always resolveMetamaskController.getState()
returns a flattened state object which now includescoreKeyringController
's state, but thevault
property is removedReferences
@metamask/eth-keyring-controller
interactions #20510@metamask/keyring-controller
patch #20512Manual Testing Steps
Interactions with keyrings should work as before
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Board
label.In this case, a QA Engineer approval will be be required.