mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
fix getPendingTransactions function for pendingTxTracker
This commit is contained in:
parent
cd1437fdd3
commit
5bb84f6e21
@ -46,9 +46,8 @@ module.exports = class TransactionController extends EventEmitter {
|
||||
return account.balance
|
||||
},
|
||||
publishTransaction: this.txProviderUtil.publishTransaction.bind(this.txProviderUtil),
|
||||
getPendingTransactions: (address) => {
|
||||
getPendingTransactions: () => {
|
||||
return this.getFilteredTxList({
|
||||
from: address,
|
||||
status: 'submitted',
|
||||
})
|
||||
},
|
||||
|
@ -66,7 +66,7 @@ module.exports = class PendingTransactionTracker extends EventEmitter {
|
||||
|
||||
|
||||
resubmitPendingTxs () {
|
||||
const pending = this.getPendingTransactions('status', 'submitted')
|
||||
const pending = this.getPendingTransactions()
|
||||
// only try resubmitting if their are transactions to resubmit
|
||||
if (!pending.length) return
|
||||
pending.forEach((txMeta) => this._resubmitTx(txMeta).catch((err) => {
|
||||
|
Loading…
Reference in New Issue
Block a user