Skip to content

Commit c9bc630

Browse files
damiannolanmergify[bot]
authored andcommitted
fix: correctly assign execModeSimulate to context for simulateTx (#20342)
(cherry picked from commit 8144a23)
1 parent b696f7a commit c9bc630

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

baseapp/baseapp.go

+1
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ func (app *BaseApp) getContextForTx(mode execMode, txBytes []byte) sdk.Context {
675675

676676
if mode == execModeSimulate {
677677
ctx, _ = ctx.CacheContext()
678+
ctx = ctx.WithExecMode(sdk.ExecMode(execModeSimulate))
678679
}
679680

680681
return ctx

0 commit comments

Comments
 (0)