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'm running a simple program (see listing below) using cairo1-run and get a runtime error Error: VirtualMachine(CantWriteReturnFp((Int(9999999999999), RelocatableValue(Relocatable { segment_index: 1, offset: 3 }))))
To Reproduce
Copy minimal reproducible program (see below) to a file test.cairo
Hi! I'm debugging this issue. It seems that calling get_availiable_gas and HashState::update_with independently will cause the same error.
For example:
use core::poseidon::PoseidonTrait;
use core::hash::{HashStateTrait, HashStateExTrait};
use core::testing::get_available_gas;
fn main() {
println!("{}", get_available_gas());
println!("{:?}", PoseidonTrait::new().update_with(100));
}
use core::poseidon::PoseidonTrait;
use core::hash::{HashStateTrait, HashStateExTrait};
use core::testing::get_available_gas;
fn main() {
println!("{}", get_available_gas());
println!("{:?}", PoseidonTrait::new());
}
Describe the bug
I'm running a simple program (see listing below) using
cairo1-run
and get a runtime errorError: VirtualMachine(CantWriteReturnFp((Int(9999999999999), RelocatableValue(Relocatable { segment_index: 1, offset: 3 }))))
To Reproduce
test.cairo
cairo1-run test.cairo --layout all_cairo
Expected behavior
Runner should exit without errors.
What version/commit are you on?
e5c079c
Additional context
Minimal program
The problem is likely in
create_entry_code
function, which produces the following:The text was updated successfully, but these errors were encountered: