From 3ca8c711146d703da6d190a19829eea3880236ee Mon Sep 17 00:00:00 2001 From: Dev Ojha Date: Sun, 28 Apr 2024 23:28:15 -0700 Subject: [PATCH] Don't run ValidateBasic on recheck --- baseapp/baseapp.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index 704732714746..dc1376f8613d 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -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 {