Skip to content

Commit

Permalink
finish the job on the results
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshOrndorff committed Jul 21, 2023
1 parent f046f9f commit 5919129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ink/spv_bridge/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ mod spv_bridge {
/// A min_depth of 1 means there is at least one block confirmation afterward.
/// 4. The merkle proof must be valid
#[ink(message, payable)]
pub fn verify_transaction(&mut self, tx_hash: HashValue, header_hash: HashValue, min_depth: u64, p: MerkleProof) -> bool {
pub fn verify_transaction(&mut self, tx_hash: HashValue, header_hash: HashValue, min_depth: u64, p: MerkleProof) -> Result<bool> {
todo!()
}

Expand All @@ -216,7 +216,7 @@ mod spv_bridge {
/// The checks performed are the same as when verifying a transaction.
/// However, in this chase, you pass the hash of the state claim
#[ink(message, payable)]
pub fn verify_state(&mut self, claim: StateClaim, block_hash: HashValue, min_depth: u64, p: MerkleProof) -> bool {
pub fn verify_state(&mut self, claim: StateClaim, block_hash: HashValue, min_depth: u64, p: MerkleProof) -> Result<bool> {
let mut claim_hash = <Sha2x256 as HashOutput>::Type::default();
ink::env::hash_encoded::<Sha2x256, _>(&claim, &mut claim_hash);

Expand Down

0 comments on commit 5919129

Please sign in to comment.