Skip to content

Commit 491aa78

Browse files
authored
fix(ante): respect NoBaseFee params in DynamicFeeChecker (#748)
1 parent 3cd42fd commit 491aa78

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44

55
### DEPENDENCIES
66

7+
### IMPROVEMENTS
8+
9+
### FEATURES
10+
11+
### BUG FIXES
12+
13+
- [\#748](https://github.com/cosmos/evm/pull/748) Fix DynamicFeeChecker in Cosmos ante handler to respect NoBaseFee feemarkets' parameter.
14+
15+
## v0.5.0
16+
17+
### DEPENDENCIES
18+
719
### BUG FIXES
820

921
- [\#471](https://github.com/cosmos/evm/pull/471) Notify new block for mempool in time

ante/evm/fee_checker.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ func FeeChecker(
5858
}
5959

6060
baseFee := feemarketParams.BaseFee
61-
// if baseFee is nil because it is disabled
62-
// or not found, consider it as 0
61+
// if baseFee is not enabled, consider it 0
6362
// so the DynamicFeeTx logic can be applied
64-
if baseFee.IsNil() {
63+
if baseFee.IsNil() || !feemarketParams.IsBaseFeeEnabled(ctx.BlockHeight()) {
6564
baseFee = sdkmath.LegacyZeroDec()
6665
}
6766

0 commit comments

Comments
 (0)