Skip to content

Commit

Permalink
- move minGasPrices inside the oracle check block
Browse files Browse the repository at this point in the history
  • Loading branch information
StrathCole committed Nov 13, 2024
1 parent f286f6d commit 75951e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom/auth/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ func (fd FeeDecorator) checkTxFee(ctx sdk.Context, tx sdk.Tx, taxes sdk.Coins, n
gas := feeTx.GetGas()
msgs := feeTx.GetMsgs()
isOracleTx := isOracleTx(msgs)
minGasPrices := fd.taxKeeper.GetEffectiveGasPrices(ctx)
reverseCharge := false
refundNonTaxableTaxes := false

Expand All @@ -244,6 +243,7 @@ func (fd FeeDecorator) checkTxFee(ctx sdk.Context, tx sdk.Tx, taxes sdk.Coins, n
// is only ran on check tx.
if !isOracleTx {
requiredGasFees := sdk.Coins{}
minGasPrices := fd.taxKeeper.GetEffectiveGasPrices(ctx)
if !minGasPrices.IsZero() {
requiredGasFees = make(sdk.Coins, len(minGasPrices))

Expand Down

0 comments on commit 75951e1

Please sign in to comment.