Skip to content

Commit

Permalink
docs: correct confusing comments in ante.IncrementSequenceDecorator (#…
Browse files Browse the repository at this point in the history
…12604)

(cherry picked from commit 6a08830)
  • Loading branch information
shaneing authored and mergify[bot] committed Jul 18, 2022
1 parent e2afb41 commit 25b805c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/auth/ante/sigverify.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ func (svd SigVerificationDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul

// IncrementSequenceDecorator handles incrementing sequences of all signers.
// Use the IncrementSequenceDecorator decorator to prevent replay attacks. Note,
// there is no need to execute IncrementSequenceDecorator on RecheckTX since
// CheckTx would already bump the sequence number.
// there is need to execute IncrementSequenceDecorator on RecheckTx since
// BaseApp.Commit() will set the check state based on the latest header.
//
// NOTE: Since CheckTx and DeliverTx state are managed separately, subsequent and
// sequential txs orginating from the same account cannot be handled correctly in
Expand Down

0 comments on commit 25b805c

Please sign in to comment.