-
Notifications
You must be signed in to change notification settings - Fork 164
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
How to directly execute a Sierra program in vm #1906
Comments
Hi! Those structures are defined in https://github.com/starkware-libs/cairo/tree/main. You can checkout that repository for examples. The following links may result useful: |
Can contracts_info be generated if only the Sierra program is available? I see that contracts_info requires the cairo program to generate. |
It can if you know what it has, but I'll assume you don't. By Sierra do you mean a JSON with lots of data, or actual Sierra code? If it's a JSON then that information should already be embedded within. If your code is not throwing an error when calling If you can get your hands on the JSON Sierra then you should load it with serde and extract the |
In the case where only the Sierra program is available (without a JSON file), how should the ContractInfo be constructed in order to execute the Sierra program? |
As I said, you don't have that information therefore you can't do it. If you absolutely have to then just create this structure manually with the correct contract entry points and their identifiers. Note that we will not be able to help you with that. |
ok,thanks |
I want to directly execute a Sierra program, but I don't know how to construct contracts_info.
The text was updated successfully, but these errors were encountered: