laconicd/x/evm/keeper
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
..
abci.go evm: remove tx logs and block bloom from chain state (#556) 2021-09-15 09:45:03 +00:00
benchmark_test.go tests: add message call benchmark (#717) 2021-11-08 13:04:49 +00:00
context_stack.go evm: fix panic when transaction is reverted (#650) 2021-10-08 11:29:40 +00:00
grpc_query_test.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
grpc_query.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
hooks_test.go evm: remove tx logs and block bloom from chain state (#556) 2021-09-15 09:45:03 +00:00
hooks.go all: linter (#532) 2021-09-05 11:03:06 +00:00
keeper_test.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
keeper.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
migrations.go feat: store migration setup (#794) 2021-11-29 16:46:20 +01:00
msg_server.go rpc: optimize tx index lookup (#810) 2021-12-16 22:30:22 +00:00
params_test.go chore: un-fork from cosmos (#166) 2021-06-22 06:49:18 -04:00
params.go evm: move ChainConfig to Params (#266) 2021-07-14 05:13:55 -04:00
state_transition_benchmark_test.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
state_transition_test.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
state_transition.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
statedb_benchmark_test.go evm: benchmark evm keeper (#586) 2021-09-24 12:58:22 -03:00
statedb_test.go Merge pull request from GHSA-mx3r-7hpq-fr4g 2021-12-23 08:07:23 -08:00
statedb.go Merge pull request from GHSA-mx3r-7hpq-fr4g 2021-12-23 08:07:23 -08:00
utils_test.go fix: consistent BaseFee check logic (#855) 2021-12-28 07:59:28 +00:00
utils.go fix: use EffectiveGasPrice in ante handler for dynamic fee tx (#817) 2021-12-15 02:17:03 +00:00