Skip to content

Commit

Permalink
fix: check_eq instead of assert_eq
Browse files Browse the repository at this point in the history
  • Loading branch information
35359595 committed May 22, 2024
1 parent ad5df3a commit 635e619
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions host/src/raiko.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,10 @@ impl Raiko {
);

// Make sure the blockhash from the node matches the one from the builder
assert_eq!(
Into::<FixedBytes<32>>::into(header.hash().0),
input.block_hash_reference,
"block hash unexpected for block {}",
input.block_number,
check_eq(
&Into::<FixedBytes<32>>::into(header.hash().0),
&input.block_hash_reference,
"block hash unexpected",
);
let output = GuestOutput::Success { header, hash: pi };

Expand Down

0 comments on commit 635e619

Please sign in to comment.