From e60770a3c49098445e8d7e692cc2954077f647eb Mon Sep 17 00:00:00 2001 From: benesjan Date: Tue, 28 Jan 2025 17:20:19 +0000 Subject: [PATCH] fixes after rebase --- .../aztec-nr/aztec/src/macros/notes/mod.nr | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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 64f77347721..2f480ebf68c 100644 --- a/noir-projects/aztec-nr/aztec/src/macros/notes/mod.nr +++ b/noir-projects/aztec-nr/aztec/src/macros/notes/mod.nr @@ -34,7 +34,7 @@ comptime fn get_next_note_type_id() -> Field { /// the length of the packed note. /// /// impl NoteInterface for NoteStruct { -/// fn to_be_bytes(self, storage_slot: Field) -> [u8; N * 32 + 64] { +/// fn pack_content(self) -> [Field; N] { /// ... /// } /// @@ -42,10 +42,6 @@ comptime fn get_next_note_type_id() -> Field { /// ... /// } /// -/// fn pack_content(self) -> [Field; N] { -/// ... -/// } -/// /// fn get_note_type_id() -> Field { /// ... /// } @@ -118,15 +114,15 @@ comptime fn generate_note_interface( ( quote { impl aztec::note::note_interface::NoteInterface<$content_len> for $name { - fn unpack_content(packed_content: [Field; $content_len]) -> Self { - $unpacked_content - } - fn pack_content(self) -> [Field; $content_len] { $content_aux_vars [$content_fields] } + fn unpack_content(packed_content: [Field; $content_len]) -> Self { + $unpacked_content + } + fn get_note_type_id() -> Field { $note_type_id }