Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
keroro520 committed Nov 29, 2024
1 parent 25115e6 commit e61a266
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions provers/risc0/guest/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#![no_main]
harness::entrypoint!(main, tests, zk_op::tests);
use raiko_lib::{
builder::calculate_block_header, consts::VerifierType, input::GuestInput,
builder::calculate_block_header, input::GuestInput, proof_type::ProofType,
protocol_instance::ProtocolInstance,
};
use revm_precompile::zk_op::ZkOperation;
use zk_op::Risc0Operator;
use risc0_zkvm::guest::env;
use zk_op::Risc0Operator;

pub mod mem;

Expand All @@ -21,7 +21,7 @@ fn main() {
.expect("Failed to set ZkvmOperations");

let header = calculate_block_header(&input);
let pi = ProtocolInstance::new(&input, &header, VerifierType::RISC0)
let pi = ProtocolInstance::new(&input, &header, ProofType::Risc0)
.unwrap()
.instance_hash();

Expand Down
1 change: 0 additions & 1 deletion provers/sp1/driver/src/verifier.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![cfg(feature = "enable")]
use alloy_primitives::B256;
use raiko_lib::builder::calculate_block_header;
use raiko_lib::consts::VerifierType;
use raiko_lib::input::{BlobProofType, GuestInput, GuestOutput};
use raiko_lib::proof_type::ProofType;
use raiko_lib::protocol_instance::ProtocolInstance;
Expand Down
4 changes: 2 additions & 2 deletions provers/sp1/guest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
harness::entrypoint!(main, tests, zk_op::tests);

use raiko_lib::{
builder::calculate_block_header, consts::VerifierType, input::GuestInput,
builder::calculate_block_header, input::GuestInput, proof_type::ProofType,
protocol_instance::ProtocolInstance, CycleTracker,
};

Expand All @@ -20,7 +20,7 @@ pub fn main() {
ct.end();

ct = CycleTracker::start("ProtocolInstance");
let pi = ProtocolInstance::new(&input, &header, VerifierType::SP1)
let pi = ProtocolInstance::new(&input, &header, ProofType::Sp1)
.unwrap()
.instance_hash();
ct.end();
Expand Down

0 comments on commit e61a266

Please sign in to comment.