Skip to content

Commit

Permalink
Fix nonce value when there are multiple transactions in parallal
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuri committed Oct 15, 2024
1 parent 5b4c287 commit 3a0d686
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ export default class ConfirmTransactionBase extends Component {
useMaxValue,
hasPriorityApprovalRequest,
mostRecentOverviewPage,
txData,
getNextNonce,
} = this.props;

const {
Expand All @@ -226,13 +228,18 @@ export default class ConfirmTransactionBase extends Component {
isEthGasPriceFetched: prevIsEthGasPriceFetched,
hexMaximumTransactionFee: prevHexMaximumTransactionFee,
hasPriorityApprovalRequest: prevHasPriorityApprovalRequest,
txData: prevTxData,
} = prevProps;

const statusUpdated = transactionStatus !== prevTxStatus;
const txDroppedOrConfirmed =
transactionStatus === TransactionStatus.dropped ||
transactionStatus === TransactionStatus.confirmed;

if (txData.id !== prevTxData.id) {
getNextNonce();
}

if (
nextNonce !== prevNextNonce ||
customNonceValue !== prevCustomNonceValue
Expand Down

0 comments on commit 3a0d686

Please sign in to comment.