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