aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-09-28 03:29:09 +0800
committerDan Finlay <dan@danfinlay.com>2017-09-28 03:29:09 +0800
commit1983e161c658979872bad66f8dd5e9b2c7a616b5 (patch)
tree8364e8db5da18c5c71fb37b47e877805dbbbfbb8 /app/scripts
parenta453eb132d1aa97923df8900f8290a1b3ca1dee3 (diff)
downloadtangerine-wallet-browser-1983e161c658979872bad66f8dd5e9b2c7a616b5.tar
tangerine-wallet-browser-1983e161c658979872bad66f8dd5e9b2c7a616b5.tar.gz
tangerine-wallet-browser-1983e161c658979872bad66f8dd5e9b2c7a616b5.tar.bz2
tangerine-wallet-browser-1983e161c658979872bad66f8dd5e9b2c7a616b5.tar.lz
tangerine-wallet-browser-1983e161c658979872bad66f8dd5e9b2c7a616b5.tar.xz
tangerine-wallet-browser-1983e161c658979872bad66f8dd5e9b2c7a616b5.tar.zst
tangerine-wallet-browser-1983e161c658979872bad66f8dd5e9b2c7a616b5.zip
Fix accountTracker store references
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/controllers/transactions.js2
-rw-r--r--app/scripts/keyring-controller.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index 4cd307b07..87521c76b 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -52,7 +52,7 @@ module.exports = class TransactionController extends EventEmitter {
provider: this.provider,
nonceTracker: this.nonceTracker,
getBalance: (address) => {
- const account = this.accountTracker.getState().accounts[address]
+ const account = this.accountTracker.store.getState().accounts[address]
if (!account) return
return account.balance
},
diff --git a/app/scripts/keyring-controller.js b/app/scripts/keyring-controller.js
index 34e008ec4..1a1904621 100644
--- a/app/scripts/keyring-controller.js
+++ b/app/scripts/keyring-controller.js
@@ -568,7 +568,7 @@ class KeyringController extends EventEmitter {
clearKeyrings () {
let accounts
try {
- accounts = Object.keys(this.accountTracker.getState())
+ accounts = Object.keys(this.accountTracker.store.getState())
} catch (e) {
accounts = []
}