mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
tx controller - fix getBalance fn
This commit is contained in:
parent
5418813ed1
commit
5e6962342d
@ -40,7 +40,7 @@ module.exports = class TransactionController extends EventEmitter {
|
|||||||
this.pendingTxTracker = new PendingTransactionTracker({
|
this.pendingTxTracker = new PendingTransactionTracker({
|
||||||
provider: this.provider,
|
provider: this.provider,
|
||||||
nonceTracker: this.nonceTracker,
|
nonceTracker: this.nonceTracker,
|
||||||
getBalance: async (address) => {
|
getBalance: (address) => {
|
||||||
const account = this.ethStore.getState().accounts[address]
|
const account = this.ethStore.getState().accounts[address]
|
||||||
if (!account) return
|
if (!account) return
|
||||||
return account.balance
|
return account.balance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user