fix(baseapp): don't share global gas meter in tx execution (#19616)

This commit is contained in:
yihuang
2024-04-15 20:21:31 +00:00
committed by GitHub
parent 369847cfd3
commit 4ed8c8431d
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -666,7 +666,8 @@ func (app *BaseApp) getContextForTx(mode execMode, txBytes []byte) sdk.Context {
panic(fmt.Sprintf("state is nil for mode %v", mode))
}
ctx := modeState.Context().
WithTxBytes(txBytes)
WithTxBytes(txBytes).
WithGasMeter(storetypes.NewInfiniteGasMeter())
// WithVoteInfos(app.voteInfos) // TODO: identify if this is needed
ctx = ctx.WithIsSigverifyTx(app.sigverifyTx)