Skip to content

Commit

Permalink
transctor use pendingNonce
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhou committed Mar 22, 2023
1 parent 6d7f342 commit 5c781e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/transactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (t *Transactor) transact(
}
}
nonce := t.nonce
if pendingNonce > nonce || !t.sentTx {
if pendingNonce > nonce || !t.sentTx || txopts.maxSubmittingTxNum == 1 {
nonce = pendingNonce
} else {
nonce++
Expand Down

0 comments on commit 5c781e2

Please sign in to comment.