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
When providing a negative signed integer as input in the input file, Leo fails to parse the input file and throws an error.
Steps to Reproduce
Run the following piece of code:
leo new hello
cd hello
cat <<EOF > src/main.leoprogram hello.aleo { transition main(public a: i32, b: i32) { let c: i32 = a + b; assert(c == 0i32); }}EOF
cat <<EOF > inputs/hello.in[main]public a: i32 = -1i32;b: i32 = 1i32EOF
leo execute
Code snippet to reproduce
Source code in src/main.leo:
program hello.aleo{transition main(public a:i32, b: i32){let c:i32 = a + b;assert(c == 0i32);}}
Input file in inputs/hello.in:
[main]
public a: i32 = -1i32;
b: i32 = 1i32
Stack trace & error message
Leo ✅ Compiled 'main.leo' into Aleo instructions
Warning: Failed to parse input file
Error [ECLI0377018]: Failed to execute the `execute` command.
SnarkVM Error: 'hello.aleo/main' expects 2 inputs, but 0 were provided.
Expected Behavior
The input file should be parsed successfully and the program should execute without any errors.
Your Environment
Leo version: leo 1.9.4
Rust version: cargo 1.70.0 (ec8a8a0ca 2023-04-25)
OS: Ubuntu 22.04 LTS
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
When providing a negative signed integer as input in the input file, Leo fails to parse the input file and throws an error.
Steps to Reproduce
Run the following piece of code:
Code snippet to reproduce
Source code in
src/main.leo
:Input file in
inputs/hello.in
:Stack trace & error message
Expected Behavior
The input file should be parsed successfully and the program should execute without any errors.
Your Environment
Leo version: leo 1.9.4
Rust version: cargo 1.70.0 (ec8a8a0ca 2023-04-25)
OS: Ubuntu 22.04 LTS
The text was updated successfully, but these errors were encountered: