Using unindexed events. Setting depth to 20

This commit is contained in:
Keshav Gupta 2022-06-23 18:21:08 +02:00
parent f2fa9a5015
commit d8c3d4e62f
3 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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();

View File

@ -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();