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
2 changes: 1 addition & 1 deletion noir-projects/aztec-nr/aztec/src/messages/logs/note.nr
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use protocol_types::{
};

// TODO: it feels like this existence check is in the wrong place. In fact, why is it needed at all? Under what circumstances have we found a non-existent note being emitted accidentally?
fn assert_note_exists<let N: u32>(context: PrivateContext, note_hash_counter: u32) {
fn assert_note_exists(context: PrivateContext, note_hash_counter: u32) {
// 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);
Expand Down