primitive-traits: use alloy INITIAL_BASE_FEE constant (#12022)

This commit is contained in:
Thomas Coratger
2024-10-24 11:53:15 +02:00
committed by GitHub
parent 0df3148357
commit 84a30b0404
8 changed files with 16 additions and 18 deletions

View File

@ -20,6 +20,7 @@ reth-consensus.workspace = true
alloy-primitives.workspace = true
revm-primitives.workspace = true
alloy-consensus.workspace = true
alloy-eips.workspace = true
[dev-dependencies]
reth-storage-api.workspace = true

View File

@ -204,7 +204,7 @@ pub fn validate_against_parent_eip1559_base_fee<ChainSpec: EthChainSpec + Ethere
let expected_base_fee =
if chain_spec.fork(EthereumHardfork::London).transitions_at_block(header.number) {
reth_primitives::constants::EIP1559_INITIAL_BASE_FEE
alloy_eips::eip1559::INITIAL_BASE_FEE
} else {
// This BaseFeeMissing will not happen as previous blocks are checked to have
// them.