-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into MMASSETS-42
- Loading branch information
Showing
81 changed files
with
3,191 additions
and
591 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
.yarn/patches/@metamask-eth-keyring-controller-npm-13.0.1-06ff83faad.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# The `removeAccount` method of some keyrings is async (e.g. `SnapKeyring`), so | ||
# this patch makes the `KeyringController` await the account removal. | ||
# | ||
# In the future, we must make sure that all keyrings implement the same | ||
# interface. | ||
# | ||
# See: https://github.com/MetaMask/KeyringController/pull/280 | ||
diff --git a/dist/KeyringController.js b/dist/KeyringController.js | ||
index 3644209391f2cdf7ff5e2bd8f94517bff13b0f47..ed63d0ba4cb56df9fe3eb6b0a274f696375dd9dc 100644 | ||
--- a/dist/KeyringController.js | ||
+++ b/dist/KeyringController.js | ||
@@ -259,7 +259,7 @@ class KeyringController extends events_1.EventEmitter { | ||
if (!keyring.removeAccount) { | ||
throw new Error(constants_1.KeyringControllerError.UnsupportedRemoveAccount); | ||
} | ||
- keyring.removeAccount(address); | ||
+ await keyring.removeAccount(address); | ||
this.emit('removedAccount', address); | ||
const accounts = await keyring.getAccounts(); | ||
// Check if this was the last/only account |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.