Skip to content

Commit

Permalink
exports name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 2, 2025
1 parent b038e11 commit 3378d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noir-projects/aztec-nr/aztec/src/macros/notes/mod.nr
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ pub(crate) comptime fn generate_note_export(
let mut hasher = Poseidon2Hasher::default();
s.as_type().hash(&mut hasher);
let hash = hasher.finish() as u32;
let global_export_name = f"{name}_{hash}_EXPORTS".quoted_contents();
let global_export_name = f"{name}_EXPORTS_{hash}".quoted_contents();
let note_fields_name = f"{name}Fields_{hash}".quoted_contents();
let (note_name_as_str, _) = name.as_str_quote();
let note_name_str_len = unquote!(quote { $note_name_as_str.as_bytes().len() });
Expand Down

0 comments on commit 3378d22

Please sign in to comment.