Skip to content

Commit

Permalink
use infinite gas meter for wasm query context
Browse files Browse the repository at this point in the history
  • Loading branch information
udpatil committed Oct 4, 2024
1 parent f3e5fdf commit 895159d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/receipt.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func (app *App) AddCosmosEventsToEVMReceiptIfApplicable(ctx sdk.Context, tx sdk.
return
}
logs := []*ethtypes.Log{}
wasmGasLimit := app.EvmKeeper.GetDeliverTxHookWasmGasLimit(ctx)
queryCtx := ctx.WithGasMeter(sdk.NewGasMeterWithMultiplier(ctx, wasmGasLimit))
// wasmGasLimit := app.EvmKeeper.GetDeliverTxHookWasmGasLimit(ctx)
queryCtx := ctx.WithGasMeter(sdk.NewInfiniteGasMeter(1, 1))
for _, wasmEvent := range wasmEvents {
contractAddr, found := GetAttributeValue(wasmEvent, wasmtypes.AttributeKeyContractAddr)
if !found {
Expand Down

0 comments on commit 895159d

Please sign in to comment.