diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-12 08:01:44 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-12 08:01:44 +0800 |
commit | 89cc48789af2bb6f0925384abe4d4a53179a3956 (patch) | |
tree | 543dfe1414138305a26d6f56d2c9d7a681c8415c /app/scripts | |
parent | 5a2a34591f8ab2aec3a056d5bb9e38ba5236cd07 (diff) | |
download | tangerine-wallet-browser-89cc48789af2bb6f0925384abe4d4a53179a3956.tar tangerine-wallet-browser-89cc48789af2bb6f0925384abe4d4a53179a3956.tar.gz tangerine-wallet-browser-89cc48789af2bb6f0925384abe4d4a53179a3956.tar.bz2 tangerine-wallet-browser-89cc48789af2bb6f0925384abe4d4a53179a3956.tar.lz tangerine-wallet-browser-89cc48789af2bb6f0925384abe4d4a53179a3956.tar.xz tangerine-wallet-browser-89cc48789af2bb6f0925384abe4d4a53179a3956.tar.zst tangerine-wallet-browser-89cc48789af2bb6f0925384abe4d4a53179a3956.zip |
update to temp dependencies
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/metamask-controller.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index e8f0eba90..cd6fdcc37 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -708,13 +708,18 @@ module.exports = class MetamaskController extends EventEmitter { } /** - * Removes a "Loose" account from state. + * Removes an account from state / storage. * * @param {string[]} address A hex address * */ async removeAccount (address) { + // Remove account from the preferences controller this.preferencesController.removeAddress(address) + // Remove account from the account tracker controller + this.accountTracker.removeAccount(address) + // Remove account from the keyring + await this.keyringController.removeAccount(address) return address } |