diff --git a/noir-projects/aztec-nr/aztec/src/encrypted_logs/encrypted_note_emission.nr b/noir-projects/aztec-nr/aztec/src/encrypted_logs/encrypted_note_emission.nr index f74254adcc2..16deb152483 100644 --- a/noir-projects/aztec-nr/aztec/src/encrypted_logs/encrypted_note_emission.nr +++ b/noir-projects/aztec-nr/aztec/src/encrypted_logs/encrypted_note_emission.nr @@ -17,6 +17,7 @@ fn compute_raw_note_log( let note_hash_counter = note_header.note_hash_counter; let storage_slot = note_header.storage_slot; + // TODO(#8589): use typesystem to skip this check when not needed let note_exists = context.note_hashes.storage.any(|n: NoteHash| n.counter == note_hash_counter); assert(note_exists, "Can only emit a note log for an existing note.");