File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed
Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -639,7 +639,6 @@ typedef struct {
639639} FFITxOutput ;
640640
641641/*
642- Transaction context for checking
643642 Transaction check result
644643 */
645644typedef struct {
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ pub unsafe extern "C" fn derivation_derive_private_key_from_seed(
446446 }
447447
448448 let seed_slice = slice:: from_raw_parts ( seed, seed_len) ;
449- let network_rust: Network = network. try_into ( ) . unwrap_or ( Network :: Dash ) ;
449+ let network_rust: Network = network. into ( ) ;
450450
451451 let path_str = match CStr :: from_ptr ( path) . to_str ( ) {
452452 Ok ( s) => s,
@@ -722,7 +722,7 @@ pub unsafe extern "C" fn dip9_derive_identity_key(
722722 }
723723
724724 let seed_slice = slice:: from_raw_parts ( seed, seed_len) ;
725- let network_rust: Network = network. try_into ( ) . unwrap_or ( Network :: Dash ) ;
725+ let network_rust: Network = network. into ( ) ;
726726
727727 use key_wallet:: bip32:: { ChildNumber , DerivationPath } ;
728728 use key_wallet:: dip9:: {
Original file line number Diff line number Diff line change @@ -138,9 +138,8 @@ pub unsafe extern "C" fn wallet_sign_transaction(
138138 }
139139}
140140
141- /// Transaction context for checking
141+ // Transaction context for checking
142142// FFITransactionContext is imported from types module at the top
143-
144143/// Transaction check result
145144#[ repr( C ) ]
146145pub struct FFITransactionCheckResult {
Original file line number Diff line number Diff line change @@ -23,9 +23,8 @@ pub struct FFIManagedWallet {
2323 pub ( crate ) inner : * mut ManagedWalletInfo ,
2424}
2525
26- /// Transaction context for checking
26+ // Transaction context for checking
2727// FFITransactionContext is imported from types module at the top
28-
2928/// Account type match result
3029#[ repr( C ) ]
3130pub struct FFIAccountMatch {
You can’t perform that action at this time.
0 commit comments