-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: cp-7.47.0 discard duplicate accounts on unlock #15356
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
base: main
Are you sure you want to change the base?
Conversation
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
f771ea9
to
c8cf951
Compare
This comment has been minimized.
This comment has been minimized.
|
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!
|
|
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.
Code LGTM (mostly basing my review on the equivalent PR on the extension)
I didn't test it though.
app/store/migrations/076.1.test.ts
Outdated
}, | ||
}, | ||
}, | ||
test: 'invalid networkConfigurationsByChainId state', |
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.
Very nit: But I guess this test name is not correct? Must be something like invalid KeyringController.keyringsMetadata state
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.
Good catch! I think I forgot this here after copying the file from other migrations. Done in a3ec0fb
name: '', | ||
}, | ||
], | ||
// TODO: update this |
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.
I guess we want to update the vault to contains the new metadata
for each keyring objects, right?
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.
Good question. I thought we needed to update that fixture because we would match IDs coming from the vault's metadata. Though this doesn't seem to be checked by any test, so keyrings included in this vault would simply receive fresh metadata on unlock.
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!
|
Description
Updating
@metamask/keyring-controller
to^22.0.0
:and
@metamask/accounts-controller
to^29.0.0
:Related issues
Fixes: #15437
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist