Skip to content

Commit

Permalink
🦹 merkleproofverification fuzz test
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Jan 30, 2023
1 parent 3985cf2 commit e94b52a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/utils/MerkleProofVerification.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -540,4 +540,12 @@ contract MerkleProofVerificationTest is Test {
)
);
}

function testFuzzVerify(
bytes32[] calldata proof,
bytes32 root,
bytes32 leaf
) public {
assertTrue(!merkleProofVerification.verify(proof, root, leaf));
}
}

0 comments on commit e94b52a

Please sign in to comment.