@@ -310,7 +310,7 @@ pub unsafe extern "C" fn managed_wallet_get_address_pool_info(
310310 if let key_wallet:: managed_account:: managed_account_type:: ManagedAccountType :: Standard {
311311 external_addresses,
312312 ..
313- } = & managed_account. account_type {
313+ } = & managed_account. managed_account_type {
314314 external_addresses
315315 } else {
316316 ( * error) . set ( FFIErrorCode :: InvalidInput , "Account type does not have external address pool" ) ;
@@ -322,7 +322,7 @@ pub unsafe extern "C" fn managed_wallet_get_address_pool_info(
322322 if let key_wallet:: managed_account:: managed_account_type:: ManagedAccountType :: Standard {
323323 internal_addresses,
324324 ..
325- } = & managed_account. account_type {
325+ } = & managed_account. managed_account_type {
326326 internal_addresses
327327 } else {
328328 ( * error) . set ( FFIErrorCode :: InvalidInput , "Account type does not have internal address pool" ) ;
@@ -331,7 +331,7 @@ pub unsafe extern "C" fn managed_wallet_get_address_pool_info(
331331 }
332332 FFIAddressPoolType :: Single => {
333333 // Get the first (and only) address pool for non-standard accounts
334- let pools = managed_account. account_type . address_pools ( ) ;
334+ let pools = managed_account. managed_account_type . address_pools ( ) ;
335335 if pools. is_empty ( ) {
336336 ( * error) . set ( FFIErrorCode :: InvalidInput , "Account has no address pools" ) ;
337337 return false ;
@@ -395,7 +395,7 @@ pub unsafe extern "C" fn managed_wallet_set_gap_limit(
395395 if let key_wallet:: managed_account:: managed_account_type:: ManagedAccountType :: Standard {
396396 external_addresses,
397397 ..
398- } = & mut managed_account. account_type {
398+ } = & mut managed_account. managed_account_type {
399399 external_addresses
400400 } else {
401401 ( * error) . set ( FFIErrorCode :: InvalidInput , "Account type does not have external address pool" ) ;
@@ -407,7 +407,7 @@ pub unsafe extern "C" fn managed_wallet_set_gap_limit(
407407 if let key_wallet:: managed_account:: managed_account_type:: ManagedAccountType :: Standard {
408408 internal_addresses,
409409 ..
410- } = & mut managed_account. account_type {
410+ } = & mut managed_account. managed_account_type {
411411 internal_addresses
412412 } else {
413413 ( * error) . set ( FFIErrorCode :: InvalidInput , "Account type does not have internal address pool" ) ;
@@ -416,7 +416,7 @@ pub unsafe extern "C" fn managed_wallet_set_gap_limit(
416416 }
417417 FFIAddressPoolType :: Single => {
418418 // Get the first (and only) address pool for non-standard accounts
419- let pools = managed_account. account_type . address_pools_mut ( ) ;
419+ let pools = managed_account. managed_account_type . address_pools_mut ( ) ;
420420 if pools. is_empty ( ) {
421421 ( * error) . set ( FFIErrorCode :: InvalidInput , "Account has no address pools" ) ;
422422 return false ;
@@ -482,7 +482,7 @@ pub unsafe extern "C" fn managed_wallet_generate_addresses_to_index(
482482 if let key_wallet:: managed_account:: managed_account_type:: ManagedAccountType :: Standard {
483483 external_addresses,
484484 ..
485- } = & mut managed_account. account_type {
485+ } = & mut managed_account. managed_account_type {
486486 {
487487 let current = external_addresses. highest_generated . unwrap_or ( 0 ) ;
488488 if target_index > current {
@@ -502,7 +502,7 @@ pub unsafe extern "C" fn managed_wallet_generate_addresses_to_index(
502502 if let key_wallet:: managed_account:: managed_account_type:: ManagedAccountType :: Standard {
503503 internal_addresses,
504504 ..
505- } = & mut managed_account. account_type {
505+ } = & mut managed_account. managed_account_type {
506506 {
507507 let current = internal_addresses. highest_generated . unwrap_or ( 0 ) ;
508508 if target_index > current {
@@ -519,7 +519,7 @@ pub unsafe extern "C" fn managed_wallet_generate_addresses_to_index(
519519 }
520520 FFIAddressPoolType :: Single => {
521521 // Get the first (and only) address pool for non-standard accounts
522- let mut pools = managed_account. account_type . address_pools_mut ( ) ;
522+ let mut pools = managed_account. managed_account_type . address_pools_mut ( ) ;
523523 if pools. is_empty ( ) {
524524 ( * error) . set ( FFIErrorCode :: InvalidInput , "Account has no address pools" ) ;
525525 return false ;
0 commit comments