Skip to content

Commit

Permalink
Merge branch 'master' into 01-07-chore_fixing_aztec-nr_warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Jan 9, 2025
2 parents 3b83b26 + 099c17b commit c9df6c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion noir-projects/aztec-nr/aztec/src/macros/mod.nr
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ comptime fn generate_compute_note_hash_and_optionally_a_nullifier() -> Quoted {
max_note_length = notes.fold(
0,
|acc, (_, (_, len, _, _)): (Type, (StructDefinition, u32, Field, [(Quoted, u32, bool)]))| {
acc + len
if len > acc {
len
} else {
acc
}
},
);

Expand Down

0 comments on commit c9df6c8

Please sign in to comment.