Skip to content

Commit

Permalink
using hex in note interface as well
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jun 18, 2024
1 parent a561732 commit a453d0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions noir/noir-repo/aztec_macros/src/transforms/note_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ fn generate_note_exports_global(
let struct_source = format!(
"
#[abi(notes)]
global {0}_EXPORTS: (Field, str<{1}>) = ({2},\"{0}\");
global {0}_EXPORTS: (Field, str<{1}>) = (0x{2},\"{0}\");
",
note_type,
note_type.len(),
Expand Down Expand Up @@ -778,8 +778,7 @@ pub fn inject_note_exports(
}?;
let global = generate_note_exports_global(
&note.borrow().name.0.contents,
// Convert to u128 to avoid Field formatting as power of 2
&note_id_value.to_u128().to_string(),
&note_id_value.to_hex(),
)
.map_err(|err| (err, file_id))?;

Expand Down

0 comments on commit a453d0e

Please sign in to comment.