From c566b3c6decba09d730aefdebc21078f7bd7240a Mon Sep 17 00:00:00 2001 From: aljo242 Date: Thu, 11 Jul 2024 10:37:55 -0400 Subject: [PATCH] update ante --- x/feemarket/ante/fee.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/feemarket/ante/fee.go b/x/feemarket/ante/fee.go index 737951d..dac2e86 100644 --- a/x/feemarket/ante/fee.go +++ b/x/feemarket/ante/fee.go @@ -223,11 +223,11 @@ const ( // scaledGasPrice = normalizedGasPrice * 10 ^ gasPricePrecision (amount of decimal places in the normalized gas price to consider when converting to int64). func GetTxPriority(fee sdk.Coin, gasLimit int64, currentGasPrice sdk.DecCoin) int64 { // protections from dividing by 0 - if gasLimit == 0 { return 0 } + // if the gas price is 0, just use a raw amount if currentGasPrice.IsZero() { return fee.Amount.Int64() }