mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
transactions: reveal #getFilteredTxList from txStateManage and fix accountTracker.store reference
This commit is contained in:
parent
80c98b1653
commit
508696f71d
@ -62,7 +62,7 @@ module.exports = class TransactionController extends EventEmitter {
|
||||
nonceTracker: this.nonceTracker,
|
||||
retryLimit: 3500, // Retry 3500 blocks, or about 1 day.
|
||||
getBalance: (address) => {
|
||||
const account = this.accountTracker.getState().accounts[address]
|
||||
const account = this.accountTracker.store.getState().accounts[address]
|
||||
if (!account) return
|
||||
return account.balance
|
||||
},
|
||||
@ -111,6 +111,10 @@ module.exports = class TransactionController extends EventEmitter {
|
||||
return this.txStateManager.getPendingTransactions(account).length
|
||||
}
|
||||
|
||||
getFilteredTxList (opts) {
|
||||
return this.txStateManager.getFilteredTxList(opts)
|
||||
}
|
||||
|
||||
getChainId () {
|
||||
const networkState = this.networkStore.getState()
|
||||
const getChainId = parseInt(networkState)
|
||||
|
Loading…
Reference in New Issue
Block a user