We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49e6e24 commit d3da847Copy full SHA for d3da847
1 file changed
crates/client/src/client.rs
@@ -340,8 +340,7 @@ impl FuelClient {
340
rpc_url: R,
341
) -> anyhow::Result<Self> {
342
let mut client = Self::new(graph_ql_url)?;
343
- let inner_rpc_url = <R as AsRef<str>>::as_ref(&rpc_url);
344
- let mut raw_rpc_url = format!("http://{}", inner_rpc_url);
+ let mut raw_rpc_url = <R as AsRef<str>>::as_ref(&rpc_url).to_string();
345
if !raw_rpc_url.starts_with("http") {
346
raw_rpc_url = format!("http://{raw_rpc_url}");
347
}
0 commit comments