Fix accountTracker store references

feature/default_network_editable
Dan Finlay 7 years ago
parent a453eb132d
commit 1983e161c6
  1. 2
      app/scripts/controllers/transactions.js
  2. 2
      app/scripts/keyring-controller.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
},

@ -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 = []
}

Loading…
Cancel
Save