Skip to content

Commit

Permalink
checking whether the a note wsa created using getNotes
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Oct 26, 2023
1 parent b0ad462 commit ce684a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion yarn-project/end-to-end/src/e2e_token_contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,13 @@ describe('e2e_token_contract', () => {
it('redeem as recipient', async () => {
await addPendingShieldNoteToPXE(0, amount, secretHash, txHash);
const txClaim = asset.methods.redeem_shield(accounts[0].address, amount, secret).send();
const receiptClaim = await txClaim.wait();
const receiptClaim = await txClaim.wait({ getNotes: true });
expect(receiptClaim.status).toBe(TxStatus.MINED);
tokenSim.redeemShield(accounts[0].address, amount);
// 1 note should be created containing `amount` of tokens
const notes = receiptClaim.notes!;
expect(notes.length).toBe(1);
expect(notes[0].notePreimage.items[0].toBigInt()).toBe(amount);
});
});

Expand Down

0 comments on commit ce684a5

Please sign in to comment.