lambdaclass / cairo-vm

cairo-vm is a Rust implementation of the Cairo VM. Cairo (CPU Algebraic Intermediate Representation) is a programming language for writing provable programs, where one party can prove to another that a certain computation was executed correctly without the need for this party to re-execute the same program.
https://lambdaclass.github.io/cairo-vm
Apache License 2.0
514 stars 144 forks source link

fix: cairo1-run array argument's length can not be less than 2 #1737

Closed catusax closed 4 months ago

catusax commented 5 months ago

fix: cairo1-run array argument's length can not be less than 2

Description

if the program has an argument which is an empty array or the length is 1, cairo1-run fails with error:

thread 'main' panicked at cairo1-run/src/main.rs:73:78:
called `Result::unwrap()` on an `Err` value: FromStrError

Checklist

catusax commented 5 months ago

Thanks for the fix! Please add this PR to the CHANGELOG.md file so we can record the changes!

CHANGELOG has been updated. please check again

catusax commented 4 months ago

@juanbono tests has been added