Skip to content
New issue

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

Error in Cairo Program Execution: NoBuiltinForInstance Issue in PR #1551 #1558

Closed
raphaelDkhn opened this issue Jan 11, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@raphaelDkhn
Copy link

Describe the bug
Hi @fmoletta, I've encountered an issue related to your PR #1551. When executing the following command in cairo1-run:
cargo run ../cairo_programs/cairo-1-programs/array_input_sum.cairo --args '2 [1 2 3 4] 0 [9 8]'
I encounter an error message:

Error: Runner(NoBuiltinForInstance(({"range_check_builtin"}, "plain")))

This error is probably causing by *array.at(...) in the cairo program.

What version/commit are you on?
Current Version/Commit: Branch cairo-1-input-args

@raphaelDkhn raphaelDkhn added the bug Something isn't working label Jan 11, 2024
@fmoletta
Copy link
Contributor

Hello! It looks like the command is missing the --layout flag. Without specifying the layout the default one is plain, which doesn't have any builtins, adding --layout all_cairo should fix it. Thanks for the catch, I'll update the README example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants