diff --git a/crates/sdk/src/lib.rs b/crates/sdk/src/lib.rs index 3c40bcb9d..7b7bb96f2 100644 --- a/crates/sdk/src/lib.rs +++ b/crates/sdk/src/lib.rs @@ -185,6 +185,7 @@ impl ProverClient { /// /// let client = ProverClient::network(private_key, rpc_url, skip_simulation); /// ``` + #[cfg(any(feature = "network", feature = "network-v2"))] pub fn network(private_key: String, rpc_url: Option, skip_simulation: bool) -> Self { cfg_if! { if #[cfg(feature = "network-v2")] { @@ -397,6 +398,7 @@ pub struct NetworkProverBuilder { skip_simulation: bool, } +#[cfg(any(feature = "network", feature = "network-v2"))] impl NetworkProverBuilder { /// Sets the private key. pub fn private_key(mut self, private_key: String) -> Self {