-
Notifications
You must be signed in to change notification settings - Fork 184
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
refactor(AztecMacro): Make max note len
error a compile time error
#5670
Comments
The value @nventuro had the intention of making the value be defined from the largest note in the contract, but as we were limited by the macros at that point we just used 20 as that value was already used somewhere else 🤷 |
max note len
error a compile time errormax note len
error a compile time error
Yes, that's tracked on this issue. Recall this comment however:
|
…NoteProcessor` warnings (#5838) Closes #5669, #5670, #4649 Correctly determines the signature of the autogenerated `compute_note_hash_and_nullifier` by looking up the serialized content size of notes used in the contract. Furthermore, that langth is compared against MAX_NOTE_FIELDS_LEN and a compile time error is emited if the user attempts to use a note that is bigger than currently supported. Finally changed the `NoteProcessor` warns to be errors (even thought this particular one shouldn't get that far anymore!)
Closed in #5838 |
…NoteProcessor` warnings (AztecProtocol/aztec-packages#5838) Closes AztecProtocol/aztec-packages#5669, AztecProtocol/aztec-packages#5670, AztecProtocol/aztec-packages#4649 Correctly determines the signature of the autogenerated `compute_note_hash_and_nullifier` by looking up the serialized content size of notes used in the contract. Furthermore, that langth is compared against MAX_NOTE_FIELDS_LEN and a compile time error is emited if the user attempts to use a note that is bigger than currently supported. Finally changed the `NoteProcessor` warns to be errors (even thought this particular one shouldn't get that far anymore!)
Ayush ran into the following error.
Comes from here
Can this error be a compile-time error? We have seemed to arrive 20 through this:
where artifact is the
compute_note_hash_and_nullifier
function artifact. Think we can extrapolate/reimplement in Noir and throw an error in the[#aztec(note)]
macroThe text was updated successfully, but these errors were encountered: