-
Notifications
You must be signed in to change notification settings - Fork 219
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
Output of to_le_bits
doesn't work for functions that take generic array inputs
#1354
Comments
This is caused by a bug where the length of the array returned by let bits: [u1; 3] = n.to_le_bits(4); But this is obviously suboptimal if the argument is not a constant and thus the length is unknown. |
Even this doesn't work. I get the following error which I guess is suggesting the same problem that you mentioned error: Expected type [u1; 4], found type [u1; _] |
@jfecher what is the status of this issue? |
@kevaundray still open. It has the same cause as most other |
Aim
Running the following tests causes in a panic in test1 while test2 passes
Expected behavior
Both tests should pass
Bug
Error message:
To reproduce
nargo test --show-output --allow-warnings test1
Installation method
Binary
Nargo version
nargo 0.5.1 (git version hash: 7f6dede, is dirty: false)
@noir-lang/noir_wasm version
No response
@noir-lang/barretenberg version
No response
@noir-lang/aztec_backend version
No response
Additional context
No response
Submission Checklist
The text was updated successfully, but these errors were encountered: