Skip to content

Commit 9b90895

Browse files
authored
Update dispatcher.rs
1 parent d1a322f commit 9b90895

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

crates/chisel/src/dispatcher.rs

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -216,23 +216,21 @@ impl ChiselDispatcher {
216216
let known_contracts = new_source.build().ok().and_then(|output| {
217217
output.enter(|output_ref| {
218218
// Create ContractsByArtifact from the compiled artifacts
219-
Some(ContractsByArtifact::new(
220-
output_ref.output().artifact_ids().map(
221-
|(id, artifact): (
222-
foundry_compilers::ArtifactId,
223-
&foundry_compilers::artifacts::ConfigurableContractArtifact,
224-
)| {
225-
(
226-
id.clone(),
227-
foundry_compilers::artifacts::CompactContractBytecode {
228-
abi: artifact.abi.clone(),
229-
bytecode: artifact.bytecode.clone(),
230-
deployed_bytecode: artifact.deployed_bytecode.clone(),
231-
},
232-
)
233-
},
234-
),
235-
))
219+
Some(ContractsByArtifact::new(output_ref.output().artifact_ids().map(
220+
|(id, artifact): (
221+
foundry_compilers::ArtifactId,
222+
&foundry_compilers::artifacts::ConfigurableContractArtifact,
223+
)| {
224+
(
225+
id,
226+
foundry_compilers::artifacts::CompactContractBytecode {
227+
abi: artifact.abi.clone(),
228+
bytecode: artifact.bytecode.clone(),
229+
deployed_bytecode: artifact.deployed_bytecode.clone(),
230+
},
231+
)
232+
},
233+
)))
236234
})
237235
});
238236
if let Ok(decoder) =

0 commit comments

Comments
 (0)