Skip to content

Commit

Permalink
Merge branch 'strath/tax2gas-gasmeter' into strath/tax2gas-gasmeter-a…
Browse files Browse the repository at this point in the history
…djustment
  • Loading branch information
StrathCole committed Sep 23, 2024
2 parents 6135512 + 78c8818 commit d678f35
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 d678f35

Please sign in to comment.