-
Notifications
You must be signed in to change notification settings - Fork 732
Fixed cost of local_into_box cost.
#9396
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Jan 4, 2026
Collaborator
Author
5 tasks
5 tasks
de53850 to
9f31b76
Compare
b275fd7 to
dd8b310
Compare
TomerStarkware
approved these changes
Jan 4, 2026
Collaborator
TomerStarkware
left a comment
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.
@TomerStarkware reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ilyalesokhin-starkware and @liorgold2).
1 task
dd8b310 to
26aa831
Compare
9f31b76 to
c0ecad6
Compare
SIERRA_UPDATE_PATCH_CHANGE_TAG=Not yet released libfunc.
26aa831 to
3fd8d15
Compare
c0ecad6 to
0cd2a74
Compare
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Summary
Reduced the gas cost for the
box::local_intolibfunc from 3 steps to 2 steps. This change is reflected in the core libfunc cost calculation and updates the expected function costs in the box e2e tests.Type of change
Please check one:
Why is this change needed?
The
box::local_intolibfunc was using more gas steps than necessary. After analysis, it was determined that 2 steps is sufficient for this operation, which will reduce the gas cost for functions using this libfunc.What was the behavior or documentation before?
The
box::local_intolibfunc was costing 3 gas steps, which resulted in higher function costs in the e2e tests.What is the behavior or documentation after?
The
box::local_intolibfunc now costs 2 gas steps, reducing the overall gas cost for functions that use this operation. The e2e test function costs have been updated to reflect this change, with most functions seeing a 100-unit reduction in cost.