aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-09-27 05:30:29 +0800
committerDan Finlay <dan@danfinlay.com>2017-09-27 05:30:29 +0800
commit651098c70d21edbca98a96ef2a8800d164035638 (patch)
treec1f884dcd4f7e4af7d2846bb937aa531d1352400
parent2eca5455c0c80d99b10c7d56858f84e605494fba (diff)
downloadtangerine-wallet-browser-651098c70d21edbca98a96ef2a8800d164035638.tar.gz
tangerine-wallet-browser-651098c70d21edbca98a96ef2a8800d164035638.tar.zst
tangerine-wallet-browser-651098c70d21edbca98a96ef2a8800d164035638.zip
Remove duplicate instantiation of account-tracker
-rw-r--r--app/scripts/metamask-controller.js6
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)