Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam committed Dec 7, 2024
1 parent b3bf13b commit aa6f342
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/fibonacci/script/bin/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use sp1_sdk::{
NetworkProver,
FulfillmentStrategy,
Error,
DEFAULT_PROVER_NETWORK_RPC,
},
utils,
SP1Stdin,
Expand All @@ -22,8 +23,9 @@ async fn main() {

// Read environment variables.
let private_key = env::var("SP1_PRIVATE_KEY")
.expect("SP1_PRIVATE_KEY must be set for remote proving");
let rpc_url = env::var("PROVER_NETWORK_RPC").ok();
.expect("SP1_PRIVATE_KEY must be set for remote proving");
let rpc_url = env::var("PROVER_NETWORK_RPC")
.unwrap_or_else(|_| DEFAULT_PROVER_NETWORK_RPC.to_string());

// Create the network prover client.
let prover = NetworkProver::new(&private_key)
Expand Down

0 comments on commit aa6f342

Please sign in to comment.