diff options
author | Bruno Barbieri <brunobar79@gmail.com> | 2018-01-31 17:25:32 +0800 |
---|---|---|
committer | Bruno Barbieri <brunobar79@gmail.com> | 2018-01-31 17:25:32 +0800 |
commit | 03d17c75ae47806e9afa562cf664819b83a2b926 (patch) | |
tree | 7d308e31370a89096fc019c205dca48ee6fb76d7 /app/scripts/metamask-controller.js | |
parent | 5f39844382fb3106b883efb81f55a6e909f28b01 (diff) | |
download | tangerine-wallet-browser-03d17c75ae47806e9afa562cf664819b83a2b926.tar tangerine-wallet-browser-03d17c75ae47806e9afa562cf664819b83a2b926.tar.gz tangerine-wallet-browser-03d17c75ae47806e9afa562cf664819b83a2b926.tar.bz2 tangerine-wallet-browser-03d17c75ae47806e9afa562cf664819b83a2b926.tar.lz tangerine-wallet-browser-03d17c75ae47806e9afa562cf664819b83a2b926.tar.xz tangerine-wallet-browser-03d17c75ae47806e9afa562cf664819b83a2b926.tar.zst tangerine-wallet-browser-03d17c75ae47806e9afa562cf664819b83a2b926.zip |
wipe only transactions for current account
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r-- | app/scripts/metamask-controller.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 79e3de4cc..14ce9c590 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -605,10 +605,10 @@ module.exports = class MetamaskController extends EventEmitter { cb(null, this.preferencesController.getSelectedAddress()) } - - resetAccount(cb){ - this.txController.wipeTransactions(); - cb(null, this.preferencesController.getSelectedAddress()) + resetAccount (cb) { + const selectedAddress = this.preferencesController.getSelectedAddress() + this.txController.wipeTransactions(selectedAddress) + cb(null, selectedAddress) } |