laconicd/app/ante
yihuang eb17366dcc
fix: consistent BaseFee check logic (#855)
Closes: #755

```
if not london_hardfork {
    # reject DynamicFeeTx
    # no `baseFeePerGas` field in block response
    # baseFee = nil
} else {
    # allow DynamicFeeTx
    # add `baseFeePerGas` field in block response
    if feemarketParams.NoBaseFee or height < feemarketParams.EnableHeight {
        # baseFee = 0
    } else {
        # init baseFee to initBaseFee and adjust in later blocks
    }
}
```

Update x/evm/keeper/keeper.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

add unit tests

Update app/ante/utils_test.go

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>

changelog
2021-12-28 07:59:28 +00:00
..
ante_test.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
ante.go Merge pull request from GHSA-mx3r-7hpq-fr4g 2021-12-23 08:07:23 -08:00
doc.go ante: switch ethAnteHandler to use AnteDecorators (#252) 2020-04-17 18:32:01 -04:00
eth_test.go fix: increase nonce in ante handler for contract creation tx (#809) 2021-12-16 22:35:28 +00:00
eth.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
sigs_test.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
utils_test.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00