From f22a501094ef32893dbe09a5393864cb85ee704b Mon Sep 17 00:00:00 2001 From: Nando Vieira Date: Wed, 13 Mar 2024 10:34:46 -0700 Subject: [PATCH] Do not raise error when trying to fund account on windows. --- cmd/soroban-cli/src/commands/network/mod.rs | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/cmd/soroban-cli/src/commands/network/mod.rs b/cmd/soroban-cli/src/commands/network/mod.rs index f00d16f80a..8e0059596b 100644 --- a/cmd/soroban-cli/src/commands/network/mod.rs +++ b/cmd/soroban-cli/src/commands/network/mod.rs @@ -194,18 +194,11 @@ impl Network { let response = match uri.scheme_str() { Some("http") => hyper::Client::new().get(uri.clone()).await?, Some("https") => { - #[cfg(target_os = "windows")] - { - return Err(Error::WindowsNotSupported(uri.to_string())); - } - #[cfg(not(target_os = "windows"))] - { - let https = hyper_tls::HttpsConnector::new(); - hyper::Client::builder() - .build::<_, hyper::Body>(https) - .get(uri.clone()) - .await? - } + let https = hyper_tls::HttpsConnector::new(); + hyper::Client::builder() + .build::<_, hyper::Body>(https) + .get(uri.clone()) + .await? } _ => { return Err(Error::InvalidUrl(uri.to_string()));