From 976cbaa732749c9f069c4fdb1cac0949f116f534 Mon Sep 17 00:00:00 2001 From: Uday Patil Date: Fri, 4 Oct 2024 08:24:02 -0500 Subject: [PATCH] use infinite gas meter for wasm query context (#1890) --- app/receipt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/receipt.go b/app/receipt.go index 9ad3b5301..32fa46d2f 100644 --- a/app/receipt.go +++ b/app/receipt.go @@ -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 {