Skip to content

Commit

Permalink
fix: correctly assign execModeSimulate to context for simulateTx (#…
Browse files Browse the repository at this point in the history
…20342)

(cherry picked from commit 8144a23)
  • Loading branch information
damiannolan authored and mergify[bot] committed May 10, 2024
1 parent b696f7a commit c9bc630
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,7 @@ func (app *BaseApp) getContextForTx(mode execMode, txBytes []byte) sdk.Context {

if mode == execModeSimulate {
ctx, _ = ctx.CacheContext()
ctx = ctx.WithExecMode(sdk.ExecMode(execModeSimulate))
}

return ctx
Expand Down

0 comments on commit c9bc630

Please sign in to comment.