|
|
|
@ -216,11 +216,17 @@ TxListItem.prototype.showRetryButton = function () { |
|
|
|
|
const currentNonce = txParams.nonce |
|
|
|
|
const currentNonceTxs = selectedAddressTxList.filter(tx => tx.txParams.nonce === currentNonce) |
|
|
|
|
const currentNonceSubmittedTxs = currentNonceTxs.filter(tx => tx.status === 'submitted') |
|
|
|
|
const currentSubmittedTxs = selectedAddressTxList.filter(tx => tx.status === 'submitted') |
|
|
|
|
const lastSubmittedTxWithCurrentNonce = currentNonceSubmittedTxs[currentNonceSubmittedTxs.length - 1] |
|
|
|
|
const currentTxIsLatestWithNonce = lastSubmittedTxWithCurrentNonce && |
|
|
|
|
lastSubmittedTxWithCurrentNonce.id === transactionId |
|
|
|
|
const lastTx = currentSubmittedTxs.reduce((tx1, tx2) => { |
|
|
|
|
if (tx1.id < tx2.id) return tx1 |
|
|
|
|
return tx2 |
|
|
|
|
}) |
|
|
|
|
const currentTxIsLatest = lastTx.id === transactionId |
|
|
|
|
|
|
|
|
|
return currentTxIsLatestWithNonce && Date.now() - transactionSubmittedTime > 30000 |
|
|
|
|
return currentTxIsLatestWithNonce && Date.now() - transactionSubmittedTime > 30000 && currentTxIsLatest |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TxListItem.prototype.setSelectedToken = function (tokenAddress) { |
|
|
|
|