diff --git a/crates/cheatcodes/src/strategy.rs b/crates/cheatcodes/src/strategy.rs index 6424b2f44..dc1928b40 100644 --- a/crates/cheatcodes/src/strategy.rs +++ b/crates/cheatcodes/src/strategy.rs @@ -26,7 +26,7 @@ pub trait CheatcodeInspectorStrategyContext: Debug + Send + Sync + Any { impl CheatcodeInspectorStrategyContext for () { fn new_cloned(&self) -> Box { - Box::new(self.clone()) + Box::new(*self) } fn as_any_mut(&mut self) -> &mut dyn Any { @@ -195,6 +195,7 @@ pub trait CheatcodeInspectorStrategy: Debug + Send + Sync + CheatcodeInspectorSt ); /// Record broadcastable transaction during CALL. + #[allow(clippy::too_many_arguments)] fn record_broadcastable_call_transactions( &self, _ctx: &mut dyn CheatcodeInspectorStrategyContext, diff --git a/crates/evm/core/src/backend/strategy.rs b/crates/evm/core/src/backend/strategy.rs index 74dd3023a..b54eab781 100644 --- a/crates/evm/core/src/backend/strategy.rs +++ b/crates/evm/core/src/backend/strategy.rs @@ -19,7 +19,7 @@ pub trait BackendStrategyContext: Debug + Send + Sync + Any { impl BackendStrategyContext for () { fn new_cloned(&self) -> Box { - Box::new(self.clone()) + Box::new(()) } fn as_any_ref(&self) -> &dyn Any { diff --git a/crates/evm/evm/src/executors/strategy.rs b/crates/evm/evm/src/executors/strategy.rs index a2cc03cd2..2d5fcfd84 100644 --- a/crates/evm/evm/src/executors/strategy.rs +++ b/crates/evm/evm/src/executors/strategy.rs @@ -24,7 +24,7 @@ pub trait ExecutorStrategyContext: Debug + Send + Sync + Any { impl ExecutorStrategyContext for () { fn new_cloned(&self) -> Box { - Box::new(self.clone()) + Box::new(*self) } fn as_any_ref(&self) -> &dyn Any { diff --git a/crates/strategy/zksync/src/executor.rs b/crates/strategy/zksync/src/executor.rs index a469d2f05..824080792 100644 --- a/crates/strategy/zksync/src/executor.rs +++ b/crates/strategy/zksync/src/executor.rs @@ -195,7 +195,6 @@ impl ExecutorStrategyExt for ZksyncExecutorStrategy { ) { let ctx = get_context(ctx); ctx.dual_compiled_contracts = dual_compiled_contracts; - println!("SAVE {}", ctx.dual_compiled_contracts.len()); } fn zksync_set_fork_env(