1
0
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:
Dan 2017-12-06 13:02:38 -03:30
parent ae2a4d78e8
commit 871d9fd9fb

View File

@ -69,7 +69,7 @@ module.exports = class PendingTransactionTracker extends EventEmitter {
const pending = this.getPendingTransactions() 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, block.number).catch((err) => {
/* /*
Dont marked as failed if the error is a "known" transaction warning Dont marked as failed if the error is a "known" transaction warning
"there is already a transaction with the same sender-nonce "there is already a transaction with the same sender-nonce