diff --git a/starknet-providers/src/jsonrpc/mod.rs b/starknet-providers/src/jsonrpc/mod.rs index 1f91e070..211bd3b7 100644 --- a/starknet-providers/src/jsonrpc/mod.rs +++ b/starknet-providers/src/jsonrpc/mod.rs @@ -30,7 +30,7 @@ pub use transports::{HttpTransport, HttpTransportError, JsonRpcTransport}; /// /// A "transport" is any implementation that can send JSON-RPC requests and receive responses. This /// most commonly happens over a network via HTTP connections, as with [`HttpTransport`]. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct JsonRpcClient { transport: T, } diff --git a/starknet-providers/src/jsonrpc/transports/http.rs b/starknet-providers/src/jsonrpc/transports/http.rs index bf85ca0f..fb7e6120 100644 --- a/starknet-providers/src/jsonrpc/transports/http.rs +++ b/starknet-providers/src/jsonrpc/transports/http.rs @@ -9,7 +9,7 @@ use crate::{ }; /// A [`JsonRpcTransport`] implementation that uses HTTP connections. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct HttpTransport { client: Client, url: Url,