You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiling a contract with more than 16 functions works, but trying to deploy it fails with Invalid array length. We should catch this error at compile-time if possible, and if not, at least provide a proper error message.
We can also increase the number of functions per contract (and we should), but should still provide a proper error message when it's exceeded.
The text was updated successfully, but these errors were encountered:
rahul-kothari
changed the title
"Invalid array length" when deploying a contract with more than 16 functions
Throw compile time error if contract has more than 16 functions
Dec 4, 2023
Re generic error length, this was introduced when we rewrote circuits in noir and there is a blocker on noir that prevents anything other than literal strings :(
While they are fixing this, I can look at how to create a compile time error for this!
fix#3500
Contracts can be compiled using nargo and nargo-wasm. So either we place
compile time checks in aztec-nr or in `noir-compiler`. I have done it in
later - specifically when we generate contract artifacts since that is
the earliest function used by both noir-wasm + compiler.
Let me know if there is a better place to add the check 🤷
Compiling a contract with more than 16 functions works, but trying to deploy it fails with
Invalid array length
. We should catch this error at compile-time if possible, and if not, at least provide a proper error message.We can also increase the number of functions per contract (and we should), but should still provide a proper error message when it's exceeded.
The text was updated successfully, but these errors were encountered: