From 3a29c296da412b7ea7d762769f8281c3398eefbb Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Tue, 21 Oct 2025 16:05:41 +0200 Subject: [PATCH] Replace deprecated from_network() with new_with_fronted_urls() --- common/client-core/src/client/base_client/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/client-core/src/client/base_client/mod.rs b/common/client-core/src/client/base_client/mod.rs index 643d569331..e2b6f250a7 100644 --- a/common/client-core/src/client/base_client/mod.rs +++ b/common/client-core/src/client/base_client/mod.rs @@ -891,13 +891,14 @@ where network_details.is_some() ); - // If network details are provided, use from_network() which handles domain fronting + // If network details are provided, use new_with_fronted_urls() which handles domain fronting if let Some(network_details) = network_details { tracing::info!( "Building nym-api client from network details (with domain fronting support)" ); - let mut builder = nym_http_api_client::ClientBuilder::from_network(network_details) + let urls = network_details.nym_api_urls.clone().unwrap_or_default(); + let mut builder = nym_http_api_client::ClientBuilder::new_with_fronted_urls(urls) .map_err(ClientCoreError::from)? .with_retries(DEFAULT_NYM_API_RETRIES);