Skip to content

Commit

Permalink
fix: missing feat flags (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy authored Nov 25, 2024
1 parent 87cab0f commit f9640e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>, skip_simulation: bool) -> Self {
cfg_if! {
if #[cfg(feature = "network-v2")] {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f9640e8

Please sign in to comment.