Skip to content

Commit

Permalink
optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Apr 2, 2024
1 parent 050fe84 commit 8bede91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yarn-project/pxe/src/note_processor/note_processor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ describe('Note Processor', () => {
encryptedLogsArr.push(encryptedLogs);
ownedL1NotePayloads.push(...payloads);
for (let i = 0; i < TXS_PER_BLOCK; i++) {
block.body.txEffects[i].noteHashes = newNotes
.map(n => pedersenHash(n.notePayload.note.items))
.slice(i * MAX_NEW_NOTE_HASHES_PER_TX, (i + 1) * MAX_NEW_NOTE_HASHES_PER_TX);
const txEffectNotes = newNotes.slice(i * MAX_NEW_NOTE_HASHES_PER_TX, (i + 1) * MAX_NEW_NOTE_HASHES_PER_TX);
block.body.txEffects[i].noteHashes = txEffectNotes
.map(n => pedersenHash(n.notePayload.note.items));
}

const randomBlockContext = new L2BlockContext(block);
Expand Down

0 comments on commit 8bede91

Please sign in to comment.