File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/uniffi/src/uniffi/types Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,15 @@ uniffi::custom_newtype!(U256, String);
1616
1717// Helper functions to convert between internal types and UniFFI types
1818pub fn felt_to_field_element ( felt : starknet:: core:: types:: Felt ) -> FieldElement {
19- FieldElement ( format ! ( "0x{:064x}" , felt ) )
19+ FieldElement ( format ! ( "0x{felt :064x}" ) )
2020}
2121
2222pub fn field_element_to_felt ( fe : & FieldElement ) -> Result < starknet:: core:: types:: Felt , DojoError > {
2323 starknet:: core:: types:: Felt :: from_hex ( & fe. 0 ) . map_err ( |_| DojoError :: InvalidInput )
2424}
2525
2626pub fn u256_to_uniffi ( u : crypto_bigint:: U256 ) -> U256 {
27- U256 ( format ! ( "0x{:064x}" , u ) )
27+ U256 ( format ! ( "0x{u :064x}" ) )
2828}
2929
3030pub fn uniffi_to_u256 ( u : & U256 ) -> Result < crypto_bigint:: U256 , DojoError > {
You can’t perform that action at this time.
0 commit comments