Skip to content

Commit

Permalink
update ante
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Jul 11, 2024
1 parent be995b0 commit c566b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/feemarket/ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit c566b3c

Please sign in to comment.