From 78c88181ab1631f6013c27df5ed9e3e685837337 Mon Sep 17 00:00:00 2001 From: StrathCole Date: Mon, 23 Sep 2024 10:50:44 +0200 Subject: [PATCH] - fix wrong gas meter type --- x/tax2gas/keeper/ante.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x/tax2gas/keeper/ante.go b/x/tax2gas/keeper/ante.go index cd56051a..a58844b8 100644 --- a/x/tax2gas/keeper/ante.go +++ b/x/tax2gas/keeper/ante.go @@ -91,7 +91,8 @@ func (d Tax2GasDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, return next(ctx.WithGasMeter(types.NewTax2GasMeter(sdk.Gas(maxGas), false)), tx, simulate) } - return next(ctx.WithGasMeter(types.NewTax2GasMeter(gasTx.GetGas(), false)), tx, simulate) + // if no limit is set anywhere, we make it an infinite gas meter, like in the upstream modules + return next(ctx.WithGasMeter(types.NewTax2GasMeter(0, true)), tx, simulate) } // GasRegisterDecorator ante decorator to store gas register in the context