diff --git a/crates/evm/evm/src/executors/strategy.rs b/crates/evm/evm/src/executors/strategy.rs index 2a88deb3b..e27f57ce0 100644 --- a/crates/evm/evm/src/executors/strategy.rs +++ b/crates/evm/evm/src/executors/strategy.rs @@ -29,7 +29,7 @@ pub trait ExecutorStrategyContext: Debug + Send + Sync + Any { impl ExecutorStrategyContext for () { fn new_cloned(&self) -> Box { - Box::new(*self) + Box::new(()) } fn as_any_ref(&self) -> &dyn Any { diff --git a/crates/strategy/zksync/src/backend.rs b/crates/strategy/zksync/src/backend.rs index 76a9286ea..aadc55ef7 100644 --- a/crates/strategy/zksync/src/backend.rs +++ b/crates/strategy/zksync/src/backend.rs @@ -12,9 +12,8 @@ use foundry_evm_core::backend::{ BackendInner, Fork, ForkDB, FoundryEvmInMemoryDB, }; use foundry_zksync_core::{ - convert::ConvertH160, PaymasterParams, ACCOUNT_CODE_STORAGE_ADDRESS, - IMMUTABLE_SIMULATOR_STORAGE_ADDRESS, KNOWN_CODES_STORAGE_ADDRESS, L2_BASE_TOKEN_ADDRESS, - NONCE_HOLDER_ADDRESS, + convert::ConvertH160, ACCOUNT_CODE_STORAGE_ADDRESS, IMMUTABLE_SIMULATOR_STORAGE_ADDRESS, + KNOWN_CODES_STORAGE_ADDRESS, L2_BASE_TOKEN_ADDRESS, NONCE_HOLDER_ADDRESS, }; use revm::{db::CacheDB, primitives::HashSet, DatabaseRef, JournaledState}; use serde::{Deserialize, Serialize};