diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-06-08 01:47:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-08 01:47:34 +0800 |
commit | c0d2dab28b4083ee3ef65b6b561e28c811c6773d (patch) | |
tree | 2e7a481a7c160cb9b0f946400e6bc5c1d6aff354 /app/scripts/metamask-controller.js | |
parent | 988283778a2be52640b27a359ef3fb1130e95711 (diff) | |
parent | c53c5d5c9e2a384c6b0a17b844919f9fff9f960e (diff) | |
download | tangerine-wallet-browser-c0d2dab28b4083ee3ef65b6b561e28c811c6773d.tar tangerine-wallet-browser-c0d2dab28b4083ee3ef65b6b561e28c811c6773d.tar.gz tangerine-wallet-browser-c0d2dab28b4083ee3ef65b6b561e28c811c6773d.tar.bz2 tangerine-wallet-browser-c0d2dab28b4083ee3ef65b6b561e28c811c6773d.tar.lz tangerine-wallet-browser-c0d2dab28b4083ee3ef65b6b561e28c811c6773d.tar.xz tangerine-wallet-browser-c0d2dab28b4083ee3ef65b6b561e28c811c6773d.tar.zst tangerine-wallet-browser-c0d2dab28b4083ee3ef65b6b561e28c811c6773d.zip |
Merge pull request #4523 from MetaMask/i4462-FixResetBug
Fix bug where reset account would not work.
Diffstat (limited to 'app/scripts/metamask-controller.js')
-rw-r--r-- | app/scripts/metamask-controller.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 532cfbd61..a362e3826 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -630,10 +630,7 @@ module.exports = class MetamaskController extends EventEmitter { async resetAccount () { const selectedAddress = this.preferencesController.getSelectedAddress() this.txController.wipeTransactions(selectedAddress) - - const networkController = this.networkController - const oldType = networkController.getProviderConfig().type - await networkController.setProviderType(oldType, true) + this.networkController.resetConnection() return selectedAddress } |