File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments