From 3378d22536168af53861baad4bc6dc7ba6cca4d0 Mon Sep 17 00:00:00 2001 From: benesjan Date: Thu, 2 Jan 2025 18:48:01 +0000 Subject: [PATCH] exports name fix --- noir-projects/aztec-nr/aztec/src/macros/notes/mod.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir-projects/aztec-nr/aztec/src/macros/notes/mod.nr b/noir-projects/aztec-nr/aztec/src/macros/notes/mod.nr index 584ee4ff8b4..61353de3916 100644 --- a/noir-projects/aztec-nr/aztec/src/macros/notes/mod.nr +++ b/noir-projects/aztec-nr/aztec/src/macros/notes/mod.nr @@ -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() });