aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/computed-balances.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-09-23 05:13:56 +0800
committerDan Finlay <dan@danfinlay.com>2017-09-23 05:13:56 +0800
commitf01b0a818ba67c2549f14382056534768a255e5b (patch)
tree4e9baaee28b9aefbf7f44c5229cfe5309e75e6f9 /app/scripts/controllers/computed-balances.js
parentf9d2f523c628228a77c28e7d46d08151453a47bc (diff)
downloadtangerine-wallet-browser-f01b0a818ba67c2549f14382056534768a255e5b.tar
tangerine-wallet-browser-f01b0a818ba67c2549f14382056534768a255e5b.tar.gz
tangerine-wallet-browser-f01b0a818ba67c2549f14382056534768a255e5b.tar.bz2
tangerine-wallet-browser-f01b0a818ba67c2549f14382056534768a255e5b.tar.lz
tangerine-wallet-browser-f01b0a818ba67c2549f14382056534768a255e5b.tar.xz
tangerine-wallet-browser-f01b0a818ba67c2549f14382056534768a255e5b.tar.zst
tangerine-wallet-browser-f01b0a818ba67c2549f14382056534768a255e5b.zip
Fix account-tracker references
Diffstat (limited to 'app/scripts/controllers/computed-balances.js')
-rw-r--r--app/scripts/controllers/computed-balances.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/scripts/controllers/computed-balances.js b/app/scripts/controllers/computed-balances.js
index a85eb5590..576746164 100644
--- a/app/scripts/controllers/computed-balances.js
+++ b/app/scripts/controllers/computed-balances.js
@@ -5,8 +5,8 @@ const BalanceController = require('./balance')
class ComputedbalancesController {
constructor (opts = {}) {
- const { ethStore, txController } = opts
- this.ethStore = ethStore
+ const { accountTracker, txController } = opts
+ this.accountTracker = accountTracker
this.txController = txController
const initState = extend({
@@ -25,9 +25,9 @@ class ComputedbalancesController {
}
_initBalanceUpdating () {
- const store = this.ethStore.getState()
+ const store = this.accountTracker.getState()
this.addAnyAccountsFromStore(store)
- this.ethStore.subscribe(this.addAnyAccountsFromStore.bind(this))
+ this.accountTracker.subscribe(this.addAnyAccountsFromStore.bind(this))
}
addAnyAccountsFromStore(store) {
@@ -48,7 +48,7 @@ class ComputedbalancesController {
trackAddress (address) {
let updater = new BalanceController({
address,
- ethStore: this.ethStore,
+ accountTracker: this.accountTracker,
txController: this.txController,
})
updater.store.subscribe((accountBalance) => {