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
I am executing an array example from the documentation in snarkvm but it does not work for me. I get this error message: Failed to parse string. Remaining invalid string is: "r0[r1] into r2; output r2; Am I doing something wrong? I am aware that variable index access it is not possible in leo but the documentation is for aleo and it looks like it should work.
🐛 Bug Report
I am executing an array example from the documentation in snarkvm but it does not work for me. I get this error message:
Failed to parse string. Remaining invalid string is: "r0[r1] into r2; output r2;
Am I doing something wrong? I am aware that variable index access it is not possible in leo but the documentation is for aleo and it looks like it should work.https://developer.aleo.org/aleo/language#array
Steps to Reproduce
snarkvm execute --offline get_array_element "[true,false,true,false]" 2u32
).If I use constant index it works:
But with variable it is an error:
Expected Behavior
Should be possible to access array with a variable index. (or change example in documentation not to confuse people)
Your Environment
v0.16.19
rustc 1.77.0 (aedd173a2 2024-03-17)
macOS 14.4
The text was updated successfully, but these errors were encountered: