Skip to content

Commit

Permalink
clippy & fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaZ030 committed Jul 24, 2024
1 parent 63afd8e commit b73bd35
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
File renamed without changes.
8 changes: 5 additions & 3 deletions provers/risc0/driver/src/methods/risc0_guest.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

pub const RISC0_GUEST_ELF: &[u8] = include_bytes!("../../../guest/target/riscv32im-risc0-zkvm-elf/release/risc0-guest");
pub const RISC0_GUEST_ID: [u32; 8] = [787132199, 2892282185, 27418400, 1074917401, 1318334946, 2605934429, 883312765, 3835530072];
pub const RISC0_GUEST_ELF: &[u8] =
include_bytes!("../../../guest/target/riscv32im-risc0-zkvm-elf/release/risc0-guest");
pub const RISC0_GUEST_ID: [u32; 8] = [
787132199, 2892282185, 27418400, 1074917401, 1318334946, 2605934429, 883312765, 3835530072,
];
10 changes: 6 additions & 4 deletions provers/sp1/driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,12 @@ impl Prover for Sp1Prover {
.map_err(|_| ProverError::GuestError("Sp1: creating proof failed".to_owned()))?;

if let Some(id_store) = id_store {
id_store.store_id(
(input.chain_spec.chain_id, output.hash, SP1_PROVER_CODE),
proof_id.clone(),
).await?;
id_store
.store_id(
(input.chain_spec.chain_id, output.hash, SP1_PROVER_CODE),
proof_id.clone(),
)
.await?;
}
let proof = {
let mut is_claimed = false;
Expand Down

0 comments on commit b73bd35

Please sign in to comment.