Skip to content

Commit

Permalink
linking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Sep 17, 2024
1 parent 3b3336d commit 6cd407f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ fn compute_raw_note_log<Note, let N: u32, let NB: u32, let M: u32>(
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.");

Expand Down

0 comments on commit 6cd407f

Please sign in to comment.