Skip to content

Commit 8144a23

Browse files
authored
fix: correctly assign execModeSimulate to context for simulateTx (#20342)
1 parent db536f7 commit 8144a23

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

baseapp/baseapp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ func (app *BaseApp) getContextForTx(mode execMode, txBytes []byte) sdk.Context {
680680

681681
if mode == execModeSimulate {
682682
ctx, _ = ctx.CacheContext()
683+
ctx = ctx.WithExecMode(sdk.ExecMode(execModeSimulate))
683684
}
684685

685686
return ctx

0 commit comments

Comments
 (0)