Skip to content

Commit de1cc6f

Browse files
committed
test fix
1 parent 12237e4 commit de1cc6f

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

yarn-project/end-to-end/src/e2e_2_pxes.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ describe('e2e_2_pxes', () => {
249249
note = notes[0];
250250
}
251251

252+
// TODO(#12013): We need to do this hack because NoteDao no longer populates noteTypeId
253+
note.noteTypeId = TestContract.notes.ValueNote.id;
254+
252255
// 3. Nullify the note
253256
{
254257
const receipt = await testContract.methods.call_destroy_note(noteStorageSlot).send().wait({ debug: true });

yarn-project/pxe/src/database/note_dao.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class NoteDao implements NoteData {
5454
public addressPoint: PublicKey,
5555

5656
/** The note type identifier for the contract.
57-
* TODO: remove
57+
* TODO(#12013): remove
5858
*/
5959
public noteTypeId: NoteSelector,
6060
) {}

yarn-project/pxe/src/simulator_oracle/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ export class SimulatorOracle implements DBOracle {
775775
receipt.blockHash!.toString(),
776776
uniqueNoteHashTreeIndex,
777777
await recipient.toAddressPoint(),
778-
NoteSelector.empty(), // todo: remove
778+
NoteSelector.empty(), // TODO(#12013): remove
779779
);
780780
}
781781

0 commit comments

Comments
 (0)