Skip to content

Commit ba28029

Browse files
committed
fmt
1 parent 5f16082 commit ba28029

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

crates/primitives/src/class.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ pub fn compute_sierra_class_hash(
329329
/// This function delegates the computation to the `starknet-rs` library. Don't really care about
330330
/// performance here because it's only for legacy classes, but we should definitely find to improve
331331
/// this without introducing too much complexity.
332-
fn compute_legacy_class_hash(class: &LegacyContractClass) -> Result<Felt, ComputeClassHashError> {
332+
pub fn compute_legacy_class_hash(
333+
class: &LegacyContractClass,
334+
) -> Result<Felt, ComputeClassHashError> {
333335
pub use starknet::core::types::contract::legacy::LegacyContractClass as StarknetRsLegacyContractClass;
334336

335337
let value = serde_json::to_value(class).unwrap();

crates/sync/stage/src/classes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ impl<P> Classes<P> {
105105
});
106106
}
107107

108-
Ok(ContractClass::try_from(gateway_class).map_err(Error::Conversion)?)
108+
ContractClass::try_from(gateway_class).map_err(Error::Conversion)
109109
})
110110
.collect::<Result<Vec<_>, Error>>();
111111

0 commit comments

Comments
 (0)