Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 2649732

Browse files
Oppenfannyguthmann
authored andcommitted
perf: remove clone from compute_sierra_class_hash (#1008)
1 parent dcc52af commit 2649732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/contract_address/sierra_contract_address.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub fn compute_sierra_class_hash(
6363
let abi = serde_json_pythonic::to_string_pythonic(
6464
&contract_class
6565
.abi
66-
.clone()
66+
.as_ref()
6767
.ok_or(ContractAddressError::MissingAbi)?
6868
.items,
6969
)

0 commit comments

Comments
 (0)