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

perf: remove clone from compute_sierra_class_hash #1008

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/contract_address/sierra_contract_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down