Skip to content

Commit

Permalink
chore: lifetime lint
Browse files Browse the repository at this point in the history
deps: remove unused dep
  • Loading branch information
Karrq committed Oct 23, 2024
1 parent 909c95c commit 2f6046a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/zksync/compiler/src/zksolc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<FindBytecodeResult<'a>> {
pub fn find_bytecode<'a: 'b, 'b>(
&'a self,
init_code: &'b [u8],
) -> Option<FindBytecodeResult<'b>> {
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));

Expand Down
1 change: 0 additions & 1 deletion crates/zksync/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f6046a

Please sign in to comment.