Skip to content

Commit

Permalink
fix: correctly assign execModeSimulate to context for simulateTx (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed May 10, 2024
1 parent db536f7 commit 8144a23
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 @@ -680,6 +680,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 8144a23

Please sign in to comment.