Skip to content

Commit

Permalink
feat: addressing Nico's router comments
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Sep 5, 2024
1 parent 1e352f7 commit d5e7b24
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion noir-projects/aztec-nr/aztec/src/note/note_getter/mod.nr
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ fn constrain_get_notes_internal<Note, let N: u32, let M: u32, PREPROCESSOR_ARGS,
let filter_args = options.filter_args;
let filtered_notes = filter_fn(opt_notes, filter_args);

let notes = crate::utils::collapse::collapse_array(filtered_notes);
let notes = crate::utils::collapse_array(filtered_notes);
let mut note_hashes: BoundedVec<Field, MAX_NOTE_HASH_READ_REQUESTS_PER_CALL> = BoundedVec::new();

// We have now collapsed the sparse array of Options into a BoundedVec. This is a more ergonomic type and also
Expand Down
4 changes: 3 additions & 1 deletion noir-projects/aztec-nr/aztec/src/utils/mod.nr
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
mod collapse;
mod collapse_array;
mod comparison;
mod point;
mod test;

use crate::utils::collapse_array::{collapse_array, verify_collapse_hints};
2 changes: 1 addition & 1 deletion noir-projects/aztec-nr/aztec/src/utils/test.nr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::collapse::{collapse_array, verify_collapse_hints};
use super::collapse_array::{collapse_array, verify_collapse_hints};

#[test]
fn collapse_empty_array() {
Expand Down

0 comments on commit d5e7b24

Please sign in to comment.