-
-
Notifications
You must be signed in to change notification settings - Fork 1.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: remove selectIdentities
in favour of selectInternalAccounts
#9724
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. |
71a2b86
to
ef5c955
Compare
1750ead
to
ef5c955
Compare
ef5c955
to
4a74a9a
Compare
cd8c412
to
201be9e
Compare
64f888b
to
d6fca2b
Compare
89852ba
to
6764d97
Compare
Bitrise❌❌❌ Commit hash: 6764d97 Note
|
59282fa
to
55cfb3a
Compare
Bitrise✅✅✅ Commit hash: 263856b Note
|
Quality Gate passedIssues Measures |
These three issues could potentially be fixed by this PR: |
Accounts Tested:
Devices tested:
Hardware wallets tested:
Successful tests:
Observations:ALL 4 OBSERVATIONS BELOW CAN BE REPRODUCED IN PRODUCTION AND ARE NOT INTRODUCED HERE
Recording:https://www.loom.com/share/75e854462d3748ceb065d83d860b15db?sid=cba2e632-bd39-4475-8df5-7d4b2b4beb1b |
@plasmacorral I went back to version 7.21.0 which was long before any accounts controller changes were added and noticed that the ens resolution in the send flow has been broken for some time. screen-20240703-145605.1.mp4 |
Tests regarding [Bug] Hardware wallet account name not reflecting on signing transaction screen #10079
Steps: Before: RPReplay_Final1719230238.MP4After: screen-20240703-154132.mp4 |
These issues are resolved in this PR, and my observations above were also able to be reproduced in production v7.24.3 and 7.24.4. |
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
Missing release label release-7.26.1 on PR. Adding release label release-7.26.1 on PR and removing other release labels(release-7.27.1), as PR was cherry-picked in branch 7.26.1. |
Description
In an effort to make MetaMask multi chain we are migrating from an address based accounts to account id based account. In feat: Accounts controller integration #8759 previous PR we integrated the accounts controller which stores metadata like the account name, address and supported methods. This pr migrates all the use of
selectIdentities
to use the accounts controller as the source of truth for all accounts information (address, name etc).selectIdentities
and replace it withselectInternalAccounts
and/orselectSelectedInternalAccountChecksummedAddress
main
and are defined here.Related issues
Fixes: https://github.com/MetaMask/accounts-planning/issues/410
Q.A/Review check list
selectIdentities
in the appidentities
as paramsManual testing steps
Fresh install
Upgrade path
Send flow
Hardware wallet connection and confirmation
Screenshots/Recordings
After
Basic usage
Untitled.mov
Hardware account name preserved when connecting and confirming with dapps
screen-20240703-155002.mp4
Complex usage
Untitled.mp4
Pre-merge author checklist
Pre-merge reviewer checklist