mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 18:41:38 +01:00
Fix undefined latestBlockNumber in _resubmitTx
This commit is contained in:
parent
ae2a4d78e8
commit
871d9fd9fb
@ -69,7 +69,7 @@ module.exports = class PendingTransactionTracker extends EventEmitter {
|
||||
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) => {
|
||||
pending.forEach((txMeta) => this._resubmitTx(txMeta, block.number).catch((err) => {
|
||||
/*
|
||||
Dont marked as failed if the error is a "known" transaction warning
|
||||
"there is already a transaction with the same sender-nonce
|
||||
|
Loading…
Reference in New Issue
Block a user