aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-08-21 12:04:07 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-08-21 12:04:07 +0800
commit34e3ec60927c60e8db49fb69f70c189e66b1490c (patch)
tree7a21c8bde33dd0e8964c485bae3d376b4ede1bc8
parent887cad973f25f43d2d4502ff31657f156a44b188 (diff)
downloadtangerine-wallet-browser-34e3ec60927c60e8db49fb69f70c189e66b1490c.tar
tangerine-wallet-browser-34e3ec60927c60e8db49fb69f70c189e66b1490c.tar.gz
tangerine-wallet-browser-34e3ec60927c60e8db49fb69f70c189e66b1490c.tar.bz2
tangerine-wallet-browser-34e3ec60927c60e8db49fb69f70c189e66b1490c.tar.lz
tangerine-wallet-browser-34e3ec60927c60e8db49fb69f70c189e66b1490c.tar.xz
tangerine-wallet-browser-34e3ec60927c60e8db49fb69f70c189e66b1490c.tar.zst
tangerine-wallet-browser-34e3ec60927c60e8db49fb69f70c189e66b1490c.zip
fix account removal
-rw-r--r--app/scripts/metamask-controller.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 2d7d2c671..cee7bf398 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -800,7 +800,8 @@ module.exports = class MetamaskController extends EventEmitter {
// Remove account from the preferences controller
this.preferencesController.removeAddress(address)
// Remove account from the account tracker controller
- this.accountTracker.removeAccount(address)
+ this.accountTracker.removeAccount([address])
+
// Remove account from the keyring
await this.keyringController.removeAccount(address)
return address