From 2649732fb491d45544205bae574d1d8405c06488 Mon Sep 17 00:00:00 2001 From: Mario Rugiero Date: Tue, 5 Sep 2023 14:26:27 -0300 Subject: [PATCH] perf: remove clone from compute_sierra_class_hash (#1008) --- src/core/contract_address/sierra_contract_address.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/contract_address/sierra_contract_address.rs b/src/core/contract_address/sierra_contract_address.rs index 1cefac37d..1bbcfb1e9 100644 --- a/src/core/contract_address/sierra_contract_address.rs +++ b/src/core/contract_address/sierra_contract_address.rs @@ -63,7 +63,7 @@ pub fn compute_sierra_class_hash( let abi = serde_json_pythonic::to_string_pythonic( &contract_class .abi - .clone() + .as_ref() .ok_or(ContractAddressError::MissingAbi)? .items, )