Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Mar 1, 2024
1 parent 93c2313 commit 9ed6fe2
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,15 @@ describe('e2e_inclusion_proofs_contract', () => {
await contract.methods.test_note_validity(owner, false, 0n, false).send().wait();
});

describe('we will test the vailure case by nullifying a note', () => {
let receipt: any;
let currentBlockNumber: any;
describe('we will test the failure case by nullifying a note', () => {
let currentBlockNumber: number;

// We test the failure case now --> The proof should fail when the nullifier already exists
it('nullifies a note and grabs block number', async () => {
receipt = await contract.methods.nullify_note(owner).send().wait({ debug: true });
const { debugInfo } = await contract.methods.nullify_note(owner).send().wait({ debug: true });
currentBlockNumber = await pxe.getBlockNumber();

const { newNullifiers } = receipt!.debugInfo!;
expect(newNullifiers.length).toBe(2);
// const nullifier = newNullifiers[1];
expect(debugInfo!.nullifiers.length).toBe(2);
});

// Note: getLowNullifierMembershipWitness returns the membership witness of the nullifier itself and not
Expand Down

0 comments on commit 9ed6fe2

Please sign in to comment.