From d8c3d4e62f0f74d744208da92122c049beac79a2 Mon Sep 17 00:00:00 2001 From: Keshav Gupta Date: Thu, 23 Jun 2022 18:21:08 +0200 Subject: [PATCH] Using unindexed events. Setting depth to 20 --- contracts/Rln.sol | 4 ++-- scripts/deploy.ts | 2 +- test/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/Rln.sol b/contracts/Rln.sol index 743d7b3..bd97416 100644 --- a/contracts/Rln.sol +++ b/contracts/Rln.sol @@ -12,8 +12,8 @@ contract RLN { IPoseidonHasher public poseidonHasher; - event MemberRegistered(uint256 pubkey, uint256 indexed index); - event MemberWithdrawn(uint256 pubkey, uint256 indexed index); + event MemberRegistered(uint256 pubkey, uint256 index); + event MemberWithdrawn(uint256 pubkey, uint256 index); constructor( uint256 membershipDeposit, diff --git a/scripts/deploy.ts b/scripts/deploy.ts index bd384b2..9221b13 100644 --- a/scripts/deploy.ts +++ b/scripts/deploy.ts @@ -22,7 +22,7 @@ async function main() { console.log("PoseidonHasher deployed to:", poseidonHasher.address); const Rln = await ethers.getContractFactory("RLN"); - const rln = await Rln.deploy(1000000000000000,10,poseidonHasher.address); + const rln = await Rln.deploy(1000000000000000,20,poseidonHasher.address); await rln.deployed(); diff --git a/test/index.ts b/test/index.ts index c91d1f4..a95ea34 100644 --- a/test/index.ts +++ b/test/index.ts @@ -11,7 +11,7 @@ describe("Rln", function () { console.log("PoseidonHasher deployed to:", poseidonHasher.address); const Rln = await ethers.getContractFactory("RLN"); - const rln = await Rln.deploy(1000000000000000,10,poseidonHasher.address); + const rln = await Rln.deploy(1000000000000000,20,poseidonHasher.address); await rln.deployed();