Skip to content

Commit

Permalink
test: refactor merkle fuzz test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNeshi committed Jan 15, 2025
1 parent c8f8e75 commit ab84718
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ path = "../lib/crypto"
path = "../contracts"

[[bin]]
name = "openzeppelin_crypto"
path = "fuzz_targets/openzeppelin_crypto.rs"
name = "merkle_verify"
path = "fuzz_targets/merkle_verify.rs"
test = false
doc = false
bench = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ fuzz_target!(|data: (Vec<u8>, [u8; 32], [u8; 32])| {
})
.collect::<Vec<_>>();

let _ = openzeppelin_crypto::merkle::Verifier::verify(&proof, root, leaf);
_ = openzeppelin_crypto::merkle::Verifier::verify(&proof, root, leaf);
});
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/openzeppelin_stylus_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fuzz_target!(|data: (B256, u8, B256, B256)| {

let mut storage = Storage;

let _ = openzeppelin_stylus::utils::cryptography::ecdsa::recover(
_ = openzeppelin_stylus::utils::cryptography::ecdsa::recover(
&mut storage,
hash,
v,
Expand All @@ -24,4 +24,4 @@ fuzz_target!(|data: (B256, u8, B256, B256)| {
);
});

// add missing shims
// TODO: add missing shims

0 comments on commit ab84718

Please sign in to comment.