diff options
author | Bruno Barbieri <brunobar79@gmail.com> | 2018-01-31 16:33:15 +0800 |
---|---|---|
committer | Bruno Barbieri <brunobar79@gmail.com> | 2018-01-31 16:33:15 +0800 |
commit | e6fda855a556a6aa0325556b074612ff76925e5d (patch) | |
tree | 8f90ac4834fbd2ab5c6e9db591f4e2fa9676297c /app/scripts/metamask-controller.js | |
parent | 1a32690a12e053a99396b2f2da1dc08eb03517f2 (diff) | |
download | tangerine-wallet-browser-e6fda855a556a6aa0325556b074612ff76925e5d.tar tangerine-wallet-browser-e6fda855a556a6aa0325556b074612ff76925e5d.tar.gz tangerine-wallet-browser-e6fda855a556a6aa0325556b074612ff76925e5d.tar.bz2 tangerine-wallet-browser-e6fda855a556a6aa0325556b074612ff76925e5d.tar.lz tangerine-wallet-browser-e6fda855a556a6aa0325556b074612ff76925e5d.tar.xz tangerine-wallet-browser-e6fda855a556a6aa0325556b074612ff76925e5d.tar.zst tangerine-wallet-browser-e6fda855a556a6aa0325556b074612ff76925e5d.zip |
added reset account feature
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r-- | app/scripts/metamask-controller.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 672ec7403..79e3de4cc 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -348,6 +348,7 @@ module.exports = class MetamaskController extends EventEmitter { addNewAccount: nodeify(this.addNewAccount, this), placeSeedWords: this.placeSeedWords.bind(this), clearSeedWordCache: this.clearSeedWordCache.bind(this), + resetAccount: this.resetAccount.bind(this), importAccountWithStrategy: this.importAccountWithStrategy.bind(this), // vault management @@ -604,6 +605,13 @@ module.exports = class MetamaskController extends EventEmitter { cb(null, this.preferencesController.getSelectedAddress()) } + + resetAccount(cb){ + this.txController.wipeTransactions(); + cb(null, this.preferencesController.getSelectedAddress()) + } + + importAccountWithStrategy (strategy, args, cb) { accountImporter.importAccount(strategy, args) .then((privateKey) => { |