Skip to content

Commit

Permalink
fix(zkvm:broadcast): fetch all factory_deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Karrq committed Apr 11, 2024
1 parent 4ce160c commit 75f82b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/cheatcodes/src/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1573,6 +1573,12 @@ impl<DB: DatabaseExt + Send> Inspector<DB> for Cheatcodes {
.unwrap_or_else(|| {
panic!("failed finding contract for {:?}", call.init_code)
});
let factory_deps = self
.dual_compiled_contracts
.fetch_all_factory_deps(contract)
.into_iter()
.collect();

let constructor_input =
call.init_code[contract.evm_bytecode.len()..].to_vec();
let create_input = foundry_zksync_core::encode_create_params(
Expand All @@ -1581,7 +1587,6 @@ impl<DB: DatabaseExt + Send> Inspector<DB> for Cheatcodes {
constructor_input,
);
bytecode = Bytes::from(create_input);
let factory_deps = vec![contract.zk_deployed_bytecode.clone()];

Some(ZkTransactionMetadata { factory_deps })
} else {
Expand Down

0 comments on commit 75f82b8

Please sign in to comment.