fix: test

This commit is contained in:
rymnc 2023-11-30 22:59:56 +05:30
parent a403bee124
commit ea4a157a70
No known key found for this signature in database
GPG Key ID: AAA088D5C68ECD34
1 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ import "forge-std/console.sol";
contract RlnTest is Test { contract RlnTest is Test {
using stdStorage for StdStorage; using stdStorage for StdStorage;
Rln public rln; RLN public rln;
PoseidonHasher public poseidon; PoseidonHasher public poseidon;
TrueVerifier public trueVerifier; TrueVerifier public trueVerifier;
FalseVerifier public falseVerifier; FalseVerifier public falseVerifier;
@ -26,7 +26,7 @@ contract RlnTest is Test {
poseidon = new PoseidonHasher(); poseidon = new PoseidonHasher();
trueVerifier = new TrueVerifier(); trueVerifier = new TrueVerifier();
falseVerifier = new FalseVerifier(); falseVerifier = new FalseVerifier();
rln = new Rln(MEMBERSHIP_DEPOSIT, DEPTH, address(poseidon), address(trueVerifier)); rln = new RLN(MEMBERSHIP_DEPOSIT, DEPTH, address(poseidon), address(trueVerifier));
} }
/// @dev Ensure that you can hash a value. /// @dev Ensure that you can hash a value.
@ -69,7 +69,7 @@ contract RlnTest is Test {
} }
function test__InvalidRegistration__FullSet() public { function test__InvalidRegistration__FullSet() public {
Rln tempRln = new Rln( RLN tempRln = new RLN(
MEMBERSHIP_DEPOSIT, MEMBERSHIP_DEPOSIT,
2, 2,
address(rln.poseidonHasher()), address(rln.poseidonHasher()),
@ -154,7 +154,7 @@ contract RlnTest is Test {
function test__InvalidSlash__InvalidProof() public { function test__InvalidSlash__InvalidProof() public {
uint256 idCommitment = 19014214495641488759237505126948346942972912379615652741039992445865937985820; uint256 idCommitment = 19014214495641488759237505126948346942972912379615652741039992445865937985820;
Rln tempRln = new Rln( RLN tempRln = new RLN(
MEMBERSHIP_DEPOSIT, MEMBERSHIP_DEPOSIT,
2, 2,
address(rln.poseidonHasher()), address(rln.poseidonHasher()),