Skip to content

Commit

Permalink
Fix issue with default nonce value being wrong when switching network…
Browse files Browse the repository at this point in the history
…s between transactions
  • Loading branch information
jpuri committed Sep 20, 2024
1 parent 9611708 commit 4254285
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export default class ConfirmTransactionBase extends Component {
clearConfirmTransaction,
nextNonce,
customNonceValue,
updateCustomNonce,
toAddress,
tryReverseResolveAddress,
isEthGasPriceFetched,
Expand Down Expand Up @@ -244,6 +245,13 @@ export default class ConfirmTransactionBase extends Component {
}
}

if (
nextNonce !== prevNextNonce &&
prevNextNonce === parseInt(customNonceValue, 10)
) {
updateCustomNonce(nextNonce);
}

if (statusUpdated && txDroppedOrConfirmed) {
showTransactionConfirmedModal({
onSubmit: () => {
Expand Down

0 comments on commit 4254285

Please sign in to comment.