Skip to content
Snippets Groups Projects
Commit d549b744 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

allow connexion to "insecure url"

parent ceb5d93c
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ pub type AccountId = subxt::utils::AccountId32; ...@@ -26,7 +26,7 @@ pub type AccountId = subxt::utils::AccountId32;
pub type IdtyIndex = u32; pub type IdtyIndex = u32;
pub async fn client(rpc_url: String) -> Client { pub async fn client(rpc_url: String) -> Client {
Client::from_url(rpc_url) Client::from_insecure_url(rpc_url)
.await .await
.expect("Cannot create RPC client") .expect("Cannot create RPC client")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment