From 90c83bc39bb153cd539b82c4f952c1cbe4dcc6a2 Mon Sep 17 00:00:00 2001 From: benesjan Date: Tue, 31 Oct 2023 07:53:27 +0000 Subject: [PATCH] fix --- .../src/e2e_non_contract_account.test.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/yarn-project/end-to-end/src/e2e_non_contract_account.test.ts b/yarn-project/end-to-end/src/e2e_non_contract_account.test.ts index 895646a9e95..f0f52a8ba3d 100644 --- a/yarn-project/end-to-end/src/e2e_non_contract_account.test.ts +++ b/yarn-project/end-to-end/src/e2e_non_contract_account.test.ts @@ -4,7 +4,7 @@ import { siloNullifier } from '@aztec/circuits.js/abis'; import { DebugLogger } from '@aztec/foundation/log'; import { toBigInt } from '@aztec/foundation/serialize'; import { TestContract } from '@aztec/noir-contracts/types'; -import { AztecNode, NotePreimage, PXE, TxStatus } from '@aztec/types'; +import { AztecNode, ExtendedNote, Note, PXE, TxStatus } from '@aztec/types'; import { setup } from './fixtures/utils.js'; @@ -74,8 +74,16 @@ describe('e2e_non_contract_account', () => { expect(nonZeroCommitments?.length).toBe(1); // Add the note - const preimage = new NotePreimage([new Fr(value)]); - await wallet.addNote(wallet.getCompleteAddress().address, contract.address, new Fr(1), preimage, receipt.txHash); + const note = new Note([new Fr(value)]); + const storageSlot = new Fr(1); + const extendedNote = new ExtendedNote( + note, + wallet.getCompleteAddress().address, + contract.address, + storageSlot, + receipt.txHash, + ); + await wallet.addNote(extendedNote); expect(await contract.methods.get_constant().view()).toEqual(value); });