@@ -9,7 +9,7 @@ use std::sync::Arc;
99
1010use crate :: address_pool:: { FFIAddressPool , FFIAddressPoolType } ;
1111use crate :: error:: { FFIError , FFIErrorCode } ;
12- use crate :: types:: { FFIAccountType , FFINetwork , FFINetworks } ;
12+ use crate :: types:: { FFIAccountType , FFINetwork } ;
1313use crate :: wallet_manager:: FFIWalletManager ;
1414use key_wallet:: managed_account:: address_pool:: AddressPool ;
1515use key_wallet:: managed_account:: ManagedAccount ;
@@ -298,9 +298,9 @@ pub unsafe extern "C" fn managed_wallet_get_top_up_account_with_registration_ind
298298#[ no_mangle]
299299pub unsafe extern "C" fn managed_account_get_network (
300300 account : * const FFIManagedAccount ,
301- ) -> FFINetworks {
301+ ) -> FFINetwork {
302302 if account. is_null ( ) {
303- return FFINetworks :: NoNetworks ;
303+ return FFINetwork :: Dash ;
304304 }
305305
306306 let account = & * account;
@@ -1018,7 +1018,7 @@ mod tests {
10181018
10191019 // Test get_network
10201020 let network = managed_account_get_network ( account) ;
1021- assert_eq ! ( network, FFINetworks :: TestnetFlag ) ;
1021+ assert_eq ! ( network, FFINetwork :: Testnet ) ;
10221022
10231023 // Test get_account_type
10241024 let mut index_out: c_uint = 999 ; // Initialize with unexpected value
@@ -1069,7 +1069,7 @@ mod tests {
10691069 unsafe {
10701070 // Test null account
10711071 let network = managed_account_get_network ( ptr:: null ( ) ) ;
1072- assert_eq ! ( network, FFINetworks :: NoNetworks ) ;
1072+ assert_eq ! ( network, FFINetwork :: Dash ) ;
10731073
10741074 let mut index_out: c_uint = 0 ;
10751075 let account_type = managed_account_get_account_type ( ptr:: null ( ) , & mut index_out) ;
0 commit comments