-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
[keyring-controller] Remove #getMemState
returns
#4199
Conversation
#getMemState
returns#getMemState
returns
9780406
to
b6875dd
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.
I suspect this PR may need to be rebased, but regardless, this PR makes sense.
97756af
to
44de690
Compare
55cc7c4
to
dc3165d
Compare
14ab92e
to
952aa96
Compare
dc3165d
to
d9b5134
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.
One nit, but looks good regardless (we can always tweak the changelog later).
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
Explanation
This PR is an intermediate refactor needed for #4192.
Since operations are eventually rolled back, the internal method will not be able to return the last controller state, risking returning a stale one. Moreover, function returns make more sense now.
This PR needs these changes to be merged first:
References
@metamask/keyring-controller
KeyringController
methods so they no longer return the controller stateaddNewAccount
return type toPromise<string>
addNewAccountWithoutUpdate
return type toPromise<string>
createNewVaultAndKeychain
return type toPromise<void>
createNewVaultAndRestore
return type toPromise<void>
importAccountWithStrategy
return type toPromise<string>
removeAccount
return type toPromise<void>
setLocked
return type toPromise<void>
submitEncryptionKey
return type toPromise<void>
submitPassword
return type toPromise<void>
Checklist