Skip to content

Commit ff6accd

Browse files
author
root
committed
use infinite gas meter for wasm query context
1 parent 9f9a0cf commit ff6accd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/receipt.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func (app *App) AddCosmosEventsToEVMReceiptIfApplicable(ctx sdk.Context, tx sdk.
4141
return
4242
}
4343
logs := []*ethtypes.Log{}
44-
wasmGasLimit := app.EvmKeeper.GetDeliverTxHookWasmGasLimit(ctx)
45-
queryCtx := ctx.WithGasMeter(sdk.NewGasMeterWithMultiplier(ctx, wasmGasLimit))
44+
// wasmGasLimit := app.EvmKeeper.GetDeliverTxHookWasmGasLimit(ctx)
45+
queryCtx := ctx.WithGasMeter(sdk.NewInfiniteGasMeter(1, 1))
4646
for _, wasmEvent := range wasmEvents {
4747
contractAddr, found := GetAttributeValue(wasmEvent, wasmtypes.AttributeKeyContractAddr)
4848
if !found {

0 commit comments

Comments
 (0)