transactions: reveal #getFilteredTxList from txStateManage and fix accountTracker.store reference

feature/default_network_editable
frankiebee 7 years ago
parent 80c98b1653
commit 508696f71d
  1. 6
      app/scripts/controllers/transactions.js

@ -62,7 +62,7 @@ module.exports = class TransactionController extends EventEmitter {
nonceTracker: this.nonceTracker, nonceTracker: this.nonceTracker,
retryLimit: 3500, // Retry 3500 blocks, or about 1 day. retryLimit: 3500, // Retry 3500 blocks, or about 1 day.
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
}, },
@ -111,6 +111,10 @@ module.exports = class TransactionController extends EventEmitter {
return this.txStateManager.getPendingTransactions(account).length return this.txStateManager.getPendingTransactions(account).length
} }
getFilteredTxList (opts) {
return this.txStateManager.getFilteredTxList(opts)
}
getChainId () { getChainId () {
const networkState = this.networkStore.getState() const networkState = this.networkStore.getState()
const getChainId = parseInt(networkState) const getChainId = parseInt(networkState)

Loading…
Cancel
Save