diff --git a/crates/evm/core/src/fork/init.rs b/crates/evm/core/src/fork/init.rs index 342dc17384df..a7a8a2e9d343 100644 --- a/crates/evm/core/src/fork/init.rs +++ b/crates/evm/core/src/fork/init.rs @@ -18,14 +18,14 @@ pub async fn environment( origin: Address, ) -> eyre::Result<(Env, Block)> { let block_number = if let Some(pin_block) = pin_block { - U64::from(pin_block) + pin_block } else { provider.get_block_number().await.wrap_err("Failed to get latest block number")? }; let (fork_gas_price, rpc_chain_id, block) = tokio::try_join!( provider.get_gas_price(), provider.get_chain_id(), - provider.get_block_by_number(BlockNumberOrTag::Number(block_number.to()), false) + provider.get_block_by_number(BlockNumberOrTag::Number(block_number), false) )?; let block = if let Some(block) = block { block