Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam committed Dec 9, 2024
1 parent aa6f342 commit f0a6a6d
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions examples/fibonacci/script/bin/network.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
use sp1_sdk::{
include_elf,
network_v2::{
NetworkProver,
FulfillmentStrategy,
Error,
DEFAULT_PROVER_NETWORK_RPC,
},
utils,
SP1Stdin,
Prover
network_v2::{FulfillmentStrategy, NetworkProver, DEFAULT_PROVER_NETWORK_RPC},
utils, SP1Stdin,
};
use std::env;
use tokio;
Expand All @@ -22,10 +15,10 @@ async fn main() {
utils::setup_logger();

// 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")
.unwrap_or_else(|_| DEFAULT_PROVER_NETWORK_RPC.to_string());
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").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 f0a6a6d

Please sign in to comment.