diff --git a/crates/zksync/compiler/src/zksolc/mod.rs b/crates/zksync/compiler/src/zksolc/mod.rs index 2879f5bf1..52f0c21be 100644 --- a/crates/zksync/compiler/src/zksolc/mod.rs +++ b/crates/zksync/compiler/src/zksolc/mod.rs @@ -220,10 +220,10 @@ impl DualCompiledContracts { /// Find a contract matching the given bytecode, whether it's EVM or ZK. /// /// Will prioritize longest match - pub fn find_bytecode<'a, 'b: 'a>( - &'b self, - init_code: &'a [u8], - ) -> Option> { + pub fn find_bytecode<'a: 'b, 'b>( + &'a self, + init_code: &'b [u8], + ) -> Option> { let evm = self.find_by_evm_bytecode(init_code).map(|evm| (ContractType::EVM, evm)); let zk = self.find_by_zk_deployed_bytecode(init_code).map(|evm| (ContractType::ZK, evm)); diff --git a/crates/zksync/core/Cargo.toml b/crates/zksync/core/Cargo.toml index 49116a36f..e3532b466 100644 --- a/crates/zksync/core/Cargo.toml +++ b/crates/zksync/core/Cargo.toml @@ -15,7 +15,6 @@ exclude.workspace = true foundry-common.workspace = true foundry-evm-abi.workspace = true foundry-cheatcodes-common.workspace = true -foundry-zksync-compiler.workspace = true alloy-primitives.workspace = true alloy-signer.workspace = true alloy-network.workspace = true