feat: update usage of withKeyring to withKeyringV2 for EVM operations.#29638
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. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2e9b628. Configure here.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Impact areas:
The removal of Performance Test Selection: |
|
gantunesr
left a comment
There was a problem hiding this comment.
looks good. We should do a quick sanity check
Tested the flows, everything works |




Description
Updates usage of
withKeyringtowithKeyringV2.Note: Instances where
withKeyringwas not updated is considered to be dead code and will be removed in a follow up PR.Changelog
CHANGELOG entry: null
Related issues
N/A
Manual testing steps
Screenshots/Recordings
N/A
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Updates the keyring access method used when importing/restoring mnemonics, which can impact account selection/address retrieval during onboarding and seedless flows. Limited scope but touches wallet import/authentication paths where regressions would be user-visible.
Overview
Switches mnemonic import flows to use
KeyringController.withKeyringV2when retrieving the first account address after creating a multichain wallet (inactions/multiSrp.importNewSecretRecoveryPhraseandAuthentication.importSeedlessMnemonicToVault).Removes the unused
createNewSecretRecoveryPhraseaction and its associated unit tests, and updates themultiSrptests to mockwithKeyringV2accordingly.Reviewed by Cursor Bugbot for commit 2e9b628. Bugbot is set up for automated code reviews on this repo. Configure here.