fix getPendingTransactions function for pendingTxTracker

feature/default_network_editable
frankiebee 7 years ago
parent cd1437fdd3
commit 5bb84f6e21
  1. 3
      app/scripts/controllers/transactions.js
  2. 2
      app/scripts/lib/pending-tx-tracker.js

@ -46,9 +46,8 @@ module.exports = class TransactionController extends EventEmitter {
return account.balance return account.balance
}, },
publishTransaction: this.txProviderUtil.publishTransaction.bind(this.txProviderUtil), publishTransaction: this.txProviderUtil.publishTransaction.bind(this.txProviderUtil),
getPendingTransactions: (address) => { getPendingTransactions: () => {
return this.getFilteredTxList({ return this.getFilteredTxList({
from: address,
status: 'submitted', status: 'submitted',
}) })
}, },

@ -66,7 +66,7 @@ module.exports = class PendingTransactionTracker extends EventEmitter {
resubmitPendingTxs () { resubmitPendingTxs () {
const pending = this.getPendingTransactions('status', 'submitted') const pending = this.getPendingTransactions()
// only try resubmitting if their are transactions to resubmit // only try resubmitting if their are transactions to resubmit
if (!pending.length) return if (!pending.length) return
pending.forEach((txMeta) => this._resubmitTx(txMeta).catch((err) => { pending.forEach((txMeta) => this._resubmitTx(txMeta).catch((err) => {

Loading…
Cancel
Save