Skip to content

Commit

Permalink
fix rest of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstam committed Dec 20, 2024
1 parent c88e254 commit 687ef13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/cycle-tracking/script/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ fn main() {

// Execute the normal program.
let client = ProverClient::from_env();
let (_, _) = client.execute(NORMAL_ELF, SP1Stdin::new()).run().expect("proving failed");
let stdin = SP1Stdin::new();
let (_, _) = client.execute(NORMAL_ELF, &stdin).run().expect("proving failed");

// Execute the report program.
let (_, report) = client.execute(REPORT_ELF, SP1Stdin::new()).run().expect("proving failed");
let (_, report) = client.execute(REPORT_ELF, &stdin).run().expect("proving failed");

// Get the "setup" cycle count from the report program.
let setup_cycles = report.cycle_tracker.get("setup").unwrap();
Expand Down

0 comments on commit 687ef13

Please sign in to comment.