-
Notifications
You must be signed in to change notification settings - Fork 160
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
Execution resource ops add subtract #774
Execution resource ops add subtract #774
Conversation
Hello @0xNonCents, congrats on your first contribution! 🎉 Re: documentation: I'm on the fence about whether these APIs need it. Particularly, about whether or not I find the behavior obvious enough. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Thanks for your contribution, there are some small clippy changes required!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @0xNonCents nice one!. The only thing i would mention is that i added filter_unused_builtins
function to have it all in the same PR, besides that it looks good.
The ExecutionResource struct ought to have same functionalities it has in the python vm. They are used in StarkNet
https://github.com/starkware-libs/cairo-lang/blob/master/src/starkware/cairo/lang/vm/cairo_pie.py#L123
#767
Added two unit tests for each added op.
I do not believe documentation needs to be updated