Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
capossele committed Jan 22, 2025
1 parent cafc0a2 commit b0832c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions contracts/src/receipt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ pub fn decode_seal(
Ok(ReceiptType::Risc0(receipt))
}
SelecorType::Groth16 => {
let receipt =
decode_groth16_seal(seal.into(), claim, journal, Some(verifier_parameters))?;
let receipt = decode_groth16_seal(seal, claim, journal, Some(verifier_parameters))?;
Ok(ReceiptType::Risc0(receipt))
}
SelecorType::SetVerifier => {
Expand Down
7 changes: 3 additions & 4 deletions contracts/src/set_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,11 @@ where
}

async fn get_latest_block(&self) -> Result<u64> {
Ok(self
.instance
self.instance
.provider()
.get_block_number()
.await
.context("Failed to get latest block number")?)
.context("Failed to get latest block number")
}

/// Query the VerifiedRoot event based on the root and block options.
Expand Down Expand Up @@ -221,7 +220,7 @@ where

let set_builder_id = Digest::from_bytes(self.image_info().await?.0 .0);
let state = GuestState {
self_image_id: set_builder_id.into(),
self_image_id: set_builder_id,
mmr: MerkleMountainRange::new_finalized(root),
};
let aggregation_set_journal = state.encode();
Expand Down

0 comments on commit b0832c1

Please sign in to comment.