Skip to content

Commit

Permalink
fix: renamed description of test case; removed unused variable in con…
Browse files Browse the repository at this point in the history
…tract test
  • Loading branch information
sifnoc committed Feb 26, 2024
1 parent 6a82630 commit 3559ad2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contracts/test/Verifiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe("Verifier Contracts", () => {
expect(await snarkVerifier.verifyProof(verifyingKey.address, commitmentCalldata.range_check_snark_proof, [1])).to.be.true;
});

it("should revert grand sum proof", async () => {
it("should revert with invalid proof", async () => {
await expect(snarkVerifier.verifyProof(verifyingKey.address, commitmentCalldata.grand_sums_batch_proof, [1])).to.be.reverted;
});
});
Expand Down Expand Up @@ -108,7 +108,6 @@ describe("Verifier Contracts", () => {
total_balances: BigNumber[];
};
let challenges: [BigNumber, BigNumber, BigNumber, BigNumber];
let userId: BytesLike;
let userIdBigUint: BigNumber;
let balance1: BigNumber;
let balance2: BigNumber;
Expand All @@ -135,7 +134,6 @@ describe("Verifier Contracts", () => {
const inclusionCalldata: any = JSON.parse(inclusionJson);

inclusionProof = inclusionCalldata.proof;
userId = inclusionCalldata.user_id;
challenges = inclusionCalldata.challenges;
userIdBigUint = inclusionCalldata.user_values[0];
balance1 = inclusionCalldata.user_values[1];
Expand Down

0 comments on commit 3559ad2

Please sign in to comment.