Skip to content

Commit

Permalink
- fix wrong gas meter type
Browse files Browse the repository at this point in the history
  • Loading branch information
StrathCole committed Sep 23, 2024
1 parent 08518d4 commit 78c8818
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/tax2gas/keeper/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 78c8818

Please sign in to comment.