Skip to content

Commit

Permalink
fixes after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jan 28, 2025
1 parent 67d0251 commit e60770a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions noir-projects/aztec-nr/aztec/src/macros/notes/mod.nr
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,14 @@ comptime fn get_next_note_type_id() -> Field {
/// the length of the packed note.
///
/// impl NoteInterface<N> for NoteStruct {
/// fn to_be_bytes(self, storage_slot: Field) -> [u8; N * 32 + 64] {
/// fn pack_content(self) -> [Field; N] {
/// ...
/// }
///
/// fn unpack_content(packed_content: [Field; N]) -> Self {
/// ...
/// }
///
/// fn pack_content(self) -> [Field; N] {
/// ...
/// }
///
/// fn get_note_type_id() -> Field {
/// ...
/// }
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit e60770a

Please sign in to comment.