-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 7 bit long note_type_id
#10951
Conversation
9ea4e28
to
dc769f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Let's also add noir tests in which we check the note type id allocation - take a look at how I tested storage slot allocation in #10320 for inspiration
74f25be
to
3378d22
Compare
@@ -265,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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sneaked in this change as it did not follow the docs on line 249.
noir-projects/noir-contracts/contracts/test_contract/src/test.nr
Outdated
Show resolved
Hide resolved
5c4c5ad
to
96033d1
Compare
Making note type id 7 bits long.