@metamask/eth-keyring-controller
Advanced tools
Comparing version 14.0.0 to 14.0.1
@@ -9,2 +9,7 @@ # Changelog | ||
## [14.0.1] | ||
### Fixed | ||
- Fix `removeAccount` to await the account removal in order to account for Snaps keyrings ([#280](https://github.com/MetaMask/KeyringController/pull/280)) | ||
- Bump `@metamask/eth-simple-keyring` from `^6.0.0` to `^6.0.1` ([#287](https://github.com/MetaMask/KeyringController/pull/287)) | ||
## [14.0.0] | ||
@@ -109,3 +114,3 @@ ### Changed | ||
- Fix support for asynchronous `addAccounts` HD Keyring method ([#176](https://github.com/MetaMask/KeyringController/pull/176)) | ||
- This method was asynchronous, but was called synchronously. Currently the method does not do anything asychronous so this should have no functional impact, but this ensures any future errors or asynchronous steps added to that method work correctly in the future. | ||
- This method was asynchronous, but was called synchronously. Currently the method does not do anything asynchronous so this should have no functional impact, but this ensures any future errors or asynchronous steps added to that method work correctly in the future. | ||
@@ -169,3 +174,4 @@ ## [8.1.0] | ||
[Unreleased]: https://github.com/MetaMask/KeyringController/compare/v14.0.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/KeyringController/compare/v14.0.1...HEAD | ||
[14.0.1]: https://github.com/MetaMask/KeyringController/compare/v14.0.0...v14.0.1 | ||
[14.0.0]: https://github.com/MetaMask/KeyringController/compare/v13.0.1...v14.0.0 | ||
@@ -172,0 +178,0 @@ [13.0.1]: https://github.com/MetaMask/KeyringController/compare/v13.0.0...v13.0.1 |
@@ -262,3 +262,6 @@ "use strict"; | ||
} | ||
keyring.removeAccount(address); | ||
// The `removeAccount` method of snaps keyring is async. We have to update | ||
// the interface of the other keyrings to be async as well. | ||
// eslint-disable-next-line @typescript-eslint/await-thenable | ||
await keyring.removeAccount(address); | ||
this.emit('removedAccount', address); | ||
@@ -265,0 +268,0 @@ const accounts = await keyring.getAccounts(); |
{ | ||
"name": "@metamask/eth-keyring-controller", | ||
"version": "14.0.0", | ||
"version": "14.0.1", | ||
"description": "A module for managing various keyrings of Ethereum accounts, encrypting them, and using them", | ||
@@ -50,3 +50,3 @@ "keywords": [ | ||
"@metamask/eth-sig-util": "^7.0.0", | ||
"@metamask/eth-simple-keyring": "^6.0.0", | ||
"@metamask/eth-simple-keyring": "^6.0.1", | ||
"@metamask/obs-store": "^8.1.0", | ||
@@ -53,0 +53,0 @@ "@metamask/utils": "^8.1.0" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157179
1566