chore: remove Block generic from apply_pre_execution_changes (#13743)

This commit is contained in:
Dan Cline
2025-01-08 23:32:22 -05:00
committed by GitHub
parent ceaa3d3705
commit fd092a267e
3 changed files with 13 additions and 14 deletions

View File

@ -94,26 +94,25 @@ where
Chainspec: EthereumHardforks,
{
/// Apply pre execution changes.
pub fn apply_pre_execution_changes<DB, Ext, Block>(
pub fn apply_pre_execution_changes<DB, Ext>(
&mut self,
block: &Block,
header: &EvmConfig::Header,
evm: &mut Evm<'_, Ext, DB>,
) -> Result<(), BlockExecutionError>
where
DB: Database + DatabaseCommit,
DB::Error: Display,
Block: reth_primitives_traits::Block<Header = EvmConfig::Header>,
{
self.apply_blockhashes_contract_call(
block.header().timestamp(),
block.header().number(),
block.header().parent_hash(),
header.timestamp(),
header.number(),
header.parent_hash(),
evm,
)?;
self.apply_beacon_root_contract_call(
block.header().timestamp(),
block.header().number(),
block.header().parent_beacon_block_root(),
header.timestamp(),
header.number(),
header.parent_beacon_block_root(),
evm,
)?;