fix(auth/ante): correct lowGasPrice calculation in TestEnsureMempoolFees (#25042)
Co-authored-by: Alex | Interchain Labs <alex@cosmoslabs.io>
This commit is contained in:
co-authored by
Alex | Interchain Labs
parent
e3d09fd0aa
commit
46c4d6ee23
@@ -198,7 +198,7 @@ func NewTxTimeoutHeightDecorator() TxTimeoutHeightDecorator {
|
||||
return TxTimeoutHeightDecorator{}
|
||||
}
|
||||
|
||||
// AnteHandle implements an AnteHandler decorator for the TxHeightTimeoutDecorator
|
||||
// AnteHandle implements an AnteHandler decorator for the TxTimeoutHeightDecorator
|
||||
// type where the current block height is checked against the tx's height timeout.
|
||||
// If a height timeout is provided (non-zero) and is less than the current block
|
||||
// height, then an error is returned.
|
||||
|
||||
@@ -100,7 +100,7 @@ func TestEnsureMempoolFees(t *testing.T) {
|
||||
// Set IsCheckTx back to true for testing sufficient mempool fee
|
||||
s.ctx = s.ctx.WithIsCheckTx(true)
|
||||
|
||||
atomPrice = sdk.NewDecCoinFromDec("atom", math.LegacyNewDec(0).Quo(math.LegacyNewDec(100000)))
|
||||
atomPrice = sdk.NewDecCoinFromDec("atom", math.LegacyNewDec(1).Quo(math.LegacyNewDec(100000)))
|
||||
lowGasPrice := []sdk.DecCoin{atomPrice}
|
||||
s.ctx = s.ctx.WithMinGasPrices(lowGasPrice)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user