diff --git a/crates/common/src/alloy_runtime_transport.rs b/crates/common/src/alloy_runtime_transport.rs index 45abceccf9299..7499c64fd7b4e 100644 --- a/crates/common/src/alloy_runtime_transport.rs +++ b/crates/common/src/alloy_runtime_transport.rs @@ -64,6 +64,14 @@ impl ::core::fmt::Display for RuntimeTransport { } impl RuntimeTransport { + /// Create a new, unconnected transport. + pub fn new(url: Url) -> Self { + Self { + inner: Arc::new(RwLock::new(None)), + url, + } + } + /// Connect to the runtime transport, depending on the URL scheme. async fn connect(&self) -> Result { match self.url.scheme() {