We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug when using Felt252Dict in cairo1, vm reports an error:
Error: VirtualMachine(DiffAssertValues((RelocatableValue(Relocatable { segment_index: 13, offset: 0 }), RelocatableValue(Relocatable { segment_index: 14, offset: 3 }))))
To Reproduce Steps to reproduce the behavior:
please go to this repo for a full example: https://github.com/catusax/cairovm-felt252dict-error
when i use this source code, compile to serria, and run with --print_output --proof_mode --layout all_cairo, the error occurs:
--print_output --proof_mode --layout all_cairo
fn main(input:Array<felt252>) -> Array<felt252> { let elements: Felt252Dict<Nullable<Span<u8>>> = Default::default(); input }
but if i remove the function params ,it works fine
fn main() -> Array<felt252> { let elements: Felt252Dict<Nullable<Span<u8>>> = Default::default(); array![1] }
Expected behavior this should has same result as the scarb cairo-run, which works fine
scarb cairo-run
What version/commit are you on? 3f9428e
Additional context Add any other context about the problem here. https://github.com/catusax/cairovm-felt252dict-error
The text was updated successfully, but these errors were encountered:
this was introduced by #1759
Sorry, something went wrong.
GasBuiltin
Hello! Thank you for reporting this! #1789 should fix it once merged
fmoletta
No branches or pull requests
Describe the bug
when using Felt252Dict in cairo1, vm reports an error:
To Reproduce
Steps to reproduce the behavior:
please go to this repo for a full example: https://github.com/catusax/cairovm-felt252dict-error
when i use this source code, compile to serria, and run with
--print_output --proof_mode --layout all_cairo
, the error occurs:but if i remove the function params ,it works fine
Expected behavior
this should has same result as the
scarb cairo-run
, which works fineWhat version/commit are you on?
3f9428e
Additional context
Add any other context about the problem here.
https://github.com/catusax/cairovm-felt252dict-error
The text was updated successfully, but these errors were encountered: