From f36bc61effc3f237db58fe480556154cc585a5cc Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 14 Mar 2022 00:44:01 +0100 Subject: [PATCH] fix: use correct artifact api (#1019) --- examples/contract_human_readable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/contract_human_readable.rs b/examples/contract_human_readable.rs index 674c2e66..a4315a7c 100644 --- a/examples/contract_human_readable.rs +++ b/examples/contract_human_readable.rs @@ -30,7 +30,7 @@ async fn main() -> Result<()> { let project = Project::builder().paths(paths).ephemeral().no_artifacts().build().unwrap(); // compile the project and get the artifacts let output = project.compile().unwrap(); - let contract = output.find("SimpleStorage").expect("could not find contract").into_owned(); + let contract = output.find("SimpleStorage").expect("could not find contract").clone(); let (abi, bytecode, _) = contract.into_parts_or_default(); // 2. instantiate our wallet & ganache