Skip to content

Commit 46c4d6e

Browse files
Galoretkaaljo242
andauthored
fix(auth/ante): correct lowGasPrice calculation in TestEnsureMempoolFees (#25042)
Co-authored-by: Alex | Interchain Labs <[email protected]>
1 parent e3d09fd commit 46c4d6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

x/auth/ante/basic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ func NewTxTimeoutHeightDecorator() TxTimeoutHeightDecorator {
198198
return TxTimeoutHeightDecorator{}
199199
}
200200

201-
// AnteHandle implements an AnteHandler decorator for the TxHeightTimeoutDecorator
201+
// AnteHandle implements an AnteHandler decorator for the TxTimeoutHeightDecorator
202202
// type where the current block height is checked against the tx's height timeout.
203203
// If a height timeout is provided (non-zero) and is less than the current block
204204
// height, then an error is returned.

x/auth/ante/fee_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TestEnsureMempoolFees(t *testing.T) {
100100
// Set IsCheckTx back to true for testing sufficient mempool fee
101101
s.ctx = s.ctx.WithIsCheckTx(true)
102102

103-
atomPrice = sdk.NewDecCoinFromDec("atom", math.LegacyNewDec(0).Quo(math.LegacyNewDec(100000)))
103+
atomPrice = sdk.NewDecCoinFromDec("atom", math.LegacyNewDec(1).Quo(math.LegacyNewDec(100000)))
104104
lowGasPrice := []sdk.DecCoin{atomPrice}
105105
s.ctx = s.ctx.WithMinGasPrices(lowGasPrice)
106106

0 commit comments

Comments
 (0)