From d2ce17af4b8af8d2c30c9671f3e4e80ee28476ec Mon Sep 17 00:00:00 2001 From: rymnc <43716372+rymnc@users.noreply.github.com> Date: Wed, 29 Mar 2023 17:23:21 +0530 Subject: [PATCH] fix: remove remnant test from interep integration --- test/rln.test.ts | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/test/rln.test.ts b/test/rln.test.ts index 19d8d69..8c5e298 100644 --- a/test/rln.test.ts +++ b/test/rln.test.ts @@ -63,28 +63,6 @@ describe("RLN", () => { ); }); - it("should not withdraw stake without address", async () => { - const rln = await ethers.getContract("RLN", ethers.provider.getSigner(0)); - - const price = await rln.MEMBERSHIP_DEPOSIT(); - - // A valid pair of (id_secret, id_commitment) generated in rust - const idSecret = - "0x2a09a9fd93c590c26b91effbb2499f07e8f7aa12e2b4940a3aed2411cb65e11c"; - const idCommitment = - "0x0c3ac305f6a4fe9bfeb3eba978bc876e2a99208b8b56c80160cfb54ba8f02368"; - - const registerTx = await rln["register(uint256)"](idCommitment, { - value: price, - }); - await registerTx.wait(); - - // We withdraw our id_commitment - const withdrawTx = rln["withdraw(uint256)"](idSecret); - - await expect(withdrawTx).to.be.revertedWith("RLN, _withdraw: staked"); - }); - it("should not allow multiple registrations with same pubkey", async () => { const rln = await ethers.getContract("RLN", ethers.provider.getSigner(0));