Skip to content

Commit

Permalink
allow insecure api url
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseAbram committed May 8, 2024
1 parent cb2e2cf commit f5fe902
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/client/src/chain_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ pub mod entropy {}
/// Creates an api instance to talk to chain
/// Chain endpoint set on launch
pub async fn get_api(url: &str) -> Result<OnlineClient<EntropyConfig>, subxt::Error> {
let api = OnlineClient::<EntropyConfig>::from_url(url).await?;
// insecure url is fine since binaries are on the same machine
let api = OnlineClient::<EntropyConfig>::from_insecure_url(url).await?;
Ok(api)
}

Expand Down

0 comments on commit f5fe902

Please sign in to comment.