mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix accountTracker store references
This commit is contained in:
parent
a453eb132d
commit
1983e161c6
@ -52,7 +52,7 @@ module.exports = class TransactionController extends EventEmitter {
|
|||||||
provider: this.provider,
|
provider: this.provider,
|
||||||
nonceTracker: this.nonceTracker,
|
nonceTracker: this.nonceTracker,
|
||||||
getBalance: (address) => {
|
getBalance: (address) => {
|
||||||
const account = this.accountTracker.getState().accounts[address]
|
const account = this.accountTracker.store.getState().accounts[address]
|
||||||
if (!account) return
|
if (!account) return
|
||||||
return account.balance
|
return account.balance
|
||||||
},
|
},
|
||||||
|
@ -568,7 +568,7 @@ class KeyringController extends EventEmitter {
|
|||||||
clearKeyrings () {
|
clearKeyrings () {
|
||||||
let accounts
|
let accounts
|
||||||
try {
|
try {
|
||||||
accounts = Object.keys(this.accountTracker.getState())
|
accounts = Object.keys(this.accountTracker.store.getState())
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
accounts = []
|
accounts = []
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user