Skip to content

Commit b3437f5

Browse files
fixes
1 parent 84057e7 commit b3437f5

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

key-wallet-ffi/include/key_wallet_ffi.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,6 @@ typedef struct {
639639
} FFITxOutput;
640640

641641
/*
642-
Transaction context for checking
643642
Transaction check result
644643
*/
645644
typedef struct {

key-wallet-ffi/src/derivation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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::{

key-wallet-ffi/src/transaction.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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)]
146145
pub struct FFITransactionCheckResult {

key-wallet-ffi/src/transaction_checking.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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)]
3130
pub struct FFIAccountMatch {

0 commit comments

Comments
 (0)