From d549b744f5498ee1624dec615b9f58f39d6552d9 Mon Sep 17 00:00:00 2001 From: Hugo Trentesaux <hugo@trentesaux.fr> Date: Thu, 22 Feb 2024 15:07:32 +0100 Subject: [PATCH] allow connexion to "insecure url" --- distance-oracle/src/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distance-oracle/src/api.rs b/distance-oracle/src/api.rs index 48b6e1278..fae73cdd7 100644 --- a/distance-oracle/src/api.rs +++ b/distance-oracle/src/api.rs @@ -26,7 +26,7 @@ pub type AccountId = subxt::utils::AccountId32; pub type IdtyIndex = u32; pub async fn client(rpc_url: String) -> Client { - Client::from_url(rpc_url) + Client::from_insecure_url(rpc_url) .await .expect("Cannot create RPC client") } -- GitLab