Skip to content

Commit

Permalink
panic with bytecode hash
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Sep 11, 2024
1 parent 62418bb commit 2de073a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/zksync/compiler/src/zksolc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ impl DualCompiledContracts {
let bytecode_vec = bytecode.object.clone().into_bytes().unwrap().to_vec();
let mut factory_deps_vec: Vec<Vec<u8>> = factory_deps_map
.keys()
.map(|factory_hash| zksolc_all_bytecodes.get(factory_hash).unwrap())
.map(|factory_hash| {
zksolc_all_bytecodes.get(factory_hash).unwrap_or_else(|| {
panic!("failed to find zksolc artifact with hash {factory_hash:?}")
})
})
.cloned()
.collect();

Expand Down

0 comments on commit 2de073a

Please sign in to comment.