diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-09-27 05:30:29 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-09-27 05:30:29 +0800 |
commit | 651098c70d21edbca98a96ef2a8800d164035638 (patch) | |
tree | c1f884dcd4f7e4af7d2846bb937aa531d1352400 /app | |
parent | 2eca5455c0c80d99b10c7d56858f84e605494fba (diff) | |
download | tangerine-wallet-browser-651098c70d21edbca98a96ef2a8800d164035638.tar tangerine-wallet-browser-651098c70d21edbca98a96ef2a8800d164035638.tar.gz tangerine-wallet-browser-651098c70d21edbca98a96ef2a8800d164035638.tar.bz2 tangerine-wallet-browser-651098c70d21edbca98a96ef2a8800d164035638.tar.lz tangerine-wallet-browser-651098c70d21edbca98a96ef2a8800d164035638.tar.xz tangerine-wallet-browser-651098c70d21edbca98a96ef2a8800d164035638.tar.zst tangerine-wallet-browser-651098c70d21edbca98a96ef2a8800d164035638.zip |
Remove duplicate instantiation of account-tracker
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/metamask-controller.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index a86d8d37b..0f850b7f5 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -86,6 +86,7 @@ module.exports = class MetamaskController extends EventEmitter { // eth data query tools this.ethQuery = new EthQuery(this.provider) + // account tracker watches balances, nonces, and any code at their address. this.accountTracker = new AccountTracker({ provider: this.provider, blockTracker: this.blockTracker, @@ -99,11 +100,6 @@ module.exports = class MetamaskController extends EventEmitter { encryptor: opts.encryptor || undefined, }) - // account tracker watches balances, nonces, and any code at their address. - this.accountTracker = new AccountTracker({ - provider: this.provider, - blockTracker: this.provider, - }) this.keyringController.on('newAccount', (address) => { this.preferencesController.setSelectedAddress(address) this.accountTracker.addAccount(address) |