Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions yarn-project/end-to-end/src/e2e_non_contract_account.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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);
});
Expand Down