Skip to content

Commit

Permalink
format guest code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wollac committed Dec 14, 2023
1 parent a480a14 commit 6d7364c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions guests/op-derive/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
#![no_main]

use risc0_zkvm::guest::env;
use zeth_lib::optimism::{DeriveInput, DeriveMachine, batcher_db::MemDb};
use zeth_lib::optimism::{batcher_db::MemDb, DeriveInput, DeriveMachine};

risc0_zkvm::guest::entry!(main);

pub fn main() {
let derive_input: DeriveInput<MemDb> = env::read();
let mut derive_machine = DeriveMachine::new(derive_input).expect("Could not create derive machine");
let output = derive_machine.derive().expect("Failed to process derivation input");
let mut derive_machine =
DeriveMachine::new(derive_input).expect("Could not create derive machine");
let output = derive_machine
.derive()
.expect("Failed to process derivation input");
env::commit(&output);
}

0 comments on commit 6d7364c

Please sign in to comment.