core
core copied to clipboard
[keyring-controller] Add `:withKeyring` action
Explanation
This PR adds the KeyringController:withKeyring
action to KeyringController
.
References
- Related to #4197
Changelog
@metamask/keyring-controller
-
ADDED: Added
KeyringController:withKeyring
action -
DEPRECATED: Deprecated
KeyringController:getKeyringForAccount
action- Use
KeyringController:withKeyring
orKeyringController:getState
instead
- Use
-
DEPRECATED: Deprecated
KeyringController:getKeyringsByType
action- Use
KeyringController:withKeyring
orKeyringController:getState
instead
- Use
Checklist
- [ ] I've updated the test suite for new or updated code as appropriate
- [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
- [ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate