From 9786a6d9e059c80cdfb7134556dba855ac71663e Mon Sep 17 00:00:00 2001 From: Uday Patil Date: Thu, 3 Oct 2024 17:30:36 -0500 Subject: [PATCH] use infinite gas meter for wasm query context --- 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 {