Skip to content

Commit

Permalink
Don't run ValidateBasic on recheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed Apr 29, 2024
1 parent 1407495 commit 3ca8c71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,8 +675,10 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte) (gInfo sdk.GasInfo, re
}

msgs := tx.GetMsgs()
if err := validateBasicTxMsgs(msgs); err != nil {
return sdk.GasInfo{}, nil, nil, 0, err
if mode != runTxModeReCheck {
if err := validateBasicTxMsgs(msgs); err != nil {
return sdk.GasInfo{}, nil, nil, 0, err
}
}

if app.anteHandler != nil {
Expand Down

0 comments on commit 3ca8c71

Please sign in to comment.