From 9b6616909b3958ad8b01f33d7bb3ef77f1733534 Mon Sep 17 00:00:00 2001 From: brianspha Date: Mon, 2 Dec 2024 22:20:15 +0200 Subject: [PATCH] fix:fix impl for ResolcContractArtifact --- .../artifact_output/resolc_artifact_output.rs | 34 +------------------ 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/crates/compilers/src/compile/resolc/artifact_output/resolc_artifact_output.rs b/crates/compilers/src/compile/resolc/artifact_output/resolc_artifact_output.rs index 3e5e248a..efdafd7b 100644 --- a/crates/compilers/src/compile/resolc/artifact_output/resolc_artifact_output.rs +++ b/crates/compilers/src/compile/resolc/artifact_output/resolc_artifact_output.rs @@ -103,39 +103,7 @@ impl ResolcArtifactOutput { contract: Contract, source_file: Option<&SourceFile>, ) -> ResolcContractArtifact { - let Contract { - abi, - metadata, - userdoc, - devdoc, - storage_layout, - eravm, - evm, - ir_optimized, - hash, - factory_dependencies, - missing_libraries, - } = contract; - let (bytecode, assembly) = eravm - .map(|eravm| (eravm.bytecode(is_unlinked), eravm.assembly)) - .or_else(|| evm.map(|evm| (evm.bytecode.map(|bc| bc.object), evm.assembly))) - .unwrap_or_else(|| (None, None)); - let bytecode = bytecode - .map(|object| ZkArtifactBytecode::with_object(object, is_unlinked, missing_libraries)); - - ZkContractArtifact { - abi, - hash, - factory_dependencies, - storage_layout: Some(storage_layout), - bytecode, - assembly, - metadata, - userdoc: Some(userdoc), - devdoc: Some(devdoc), - ir_optimized, - id: source_file.as_ref().map(|s| s.id), - } + todo("Implement this if needed") } fn create_byte_code(