diff options
author | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-25 07:56:49 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-10-25 07:56:49 +0800 |
commit | 301c737bbc3a484fb49d2e1f868a576cea73e60a (patch) | |
tree | f109a25ae1e56dd28da5b259b933a857f0bc1be4 /app/scripts/controllers | |
parent | 3f1ae92bb7d4ca4629995f32dc03f37e6460a864 (diff) | |
parent | 1767dceba44f6d173bf3cdb8436d117c7f29b834 (diff) | |
download | tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar.gz tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar.bz2 tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar.lz tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar.xz tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.tar.zst tangerine-wallet-browser-301c737bbc3a484fb49d2e1f868a576cea73e60a.zip |
Merge branch 'master' into NewUI-flat
Diffstat (limited to 'app/scripts/controllers')
-rw-r--r-- | app/scripts/controllers/computed-balances.js | 8 | ||||
-rw-r--r-- | app/scripts/controllers/network.js | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/scripts/controllers/computed-balances.js b/app/scripts/controllers/computed-balances.js index 9855f715e..907b087cf 100644 --- a/app/scripts/controllers/computed-balances.js +++ b/app/scripts/controllers/computed-balances.js @@ -32,13 +32,13 @@ class ComputedbalancesController { this.accountTracker.store.subscribe(this.syncAllAccountsFromStore.bind(this)) } - syncAllAccountsFromStore(store) { + syncAllAccountsFromStore (store) { const upstream = Object.keys(store.accounts) const balances = Object.keys(this.balances) .map(address => this.balances[address]) // Follow new addresses - for (let address in balances) { + for (const address in balances) { this.trackAddressIfNotAlready(address) } @@ -58,14 +58,14 @@ class ComputedbalancesController { } trackAddress (address) { - let updater = new BalanceController({ + const updater = new BalanceController({ address, accountTracker: this.accountTracker, txController: this.txController, blockTracker: this.blockTracker, }) updater.store.subscribe((accountBalance) => { - let newState = this.store.getState() + const newState = this.store.getState() newState.computedBalances[address] = accountBalance this.store.updateState(newState) }) diff --git a/app/scripts/controllers/network.js b/app/scripts/controllers/network.js index 7f0cbd379..23afdc12b 100644 --- a/app/scripts/controllers/network.js +++ b/app/scripts/controllers/network.js @@ -105,7 +105,7 @@ module.exports = class NetworkController extends EventEmitter { this.emit('networkDidChange') } - _configureStandardProvider(_providerParams) { + _configureStandardProvider (_providerParams) { const providerParams = extend(this._baseProviderParams, _providerParams) const provider = createMetamaskProvider(providerParams) this._setProvider(provider) |