@@ -3,7 +3,7 @@ use std::{collections::HashMap, marker::PhantomData, mem, sync::Arc};
33use alloy:: {
44 consensus:: { BlockHeader , TxType } ,
55 eips:: BlockId ,
6- network:: { primitives :: HeaderResponse , BlockResponse , TransactionBuilder } ,
6+ network:: TransactionBuilder ,
77 rpc:: types:: { state:: StateOverride , Block , Header , Transaction , TransactionRequest } ,
88} ;
99use eyre:: Result ;
@@ -64,7 +64,7 @@ impl<E: ExecutionProvider<Ethereum>> EthereumEvm<E> {
6464 . map_err ( |err| EvmError :: Generic ( err. to_string ( ) ) ) ?;
6565
6666 // Pin block id to a specific hash for the entire EVM run
67- let pinned_block_id: BlockId = block. header ( ) . hash ( ) . into ( ) ;
67+ let pinned_block_id: BlockId = block. header . hash . into ( ) ;
6868
6969 let mut db = ProofDB :: new ( pinned_block_id, self . execution . clone ( ) , state_overrides) ;
7070 _ = db. state . prefetch_state ( tx, validate_tx) . await ;
@@ -110,10 +110,10 @@ impl<E: ExecutionProvider<Ethereum>> EthereumEvm<E> {
110110 fn get_context (
111111 & self ,
112112 tx : & TransactionRequest ,
113- block : & Block < Transaction , Header > ,
113+ block : & Block < Transaction > ,
114114 validate_tx : bool ,
115115 ) -> Context {
116- let spec = get_spec_id_for_block_timestamp ( block. header ( ) . timestamp ( ) , & self . fork_schedule ) ;
116+ let spec = get_spec_id_for_block_timestamp ( block. header . timestamp , & self . fork_schedule ) ;
117117 let mut tx_env = Self :: tx_env ( tx, spec) ;
118118
119119 if <TxType as Into < u8 > >:: into (
@@ -126,7 +126,7 @@ impl<E: ExecutionProvider<Ethereum>> EthereumEvm<E> {
126126 }
127127
128128 let mut cfg = CfgEnv :: default ( ) ;
129- cfg. spec = get_spec_id_for_block_timestamp ( block. header ( ) . timestamp ( ) , & self . fork_schedule ) ;
129+ cfg. spec = get_spec_id_for_block_timestamp ( block. header . timestamp , & self . fork_schedule ) ;
130130 cfg. chain_id = self . chain_id ;
131131 cfg. disable_block_gas_limit = !validate_tx;
132132 cfg. disable_eip3607 = !validate_tx;
0 commit comments