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

witness: fix contract creation init gas charging #393

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

jsign
Copy link
Collaborator

@jsign jsign commented Feb 28, 2024

Contract creation was touching the location of the code keccak (and charging gas for it) BEFORE the contract init code was executed. This meant that if the contract creation used the GAS instruction, it would return an incorrect value. This was found in a test, that immediately called SELFDESTRUCT and using the outpout of GAS as its beneficiary.

@jsign jsign marked this pull request as ready for review February 28, 2024 12:30
@jsign jsign requested a review from gballet February 28, 2024 12:30
@gballet gballet added this to the verkle-gen-devnet-5 milestone Feb 28, 2024
Copy link
Owner

@gballet gballet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gballet gballet merged commit 45e7cb6 into kaustinen-with-shapella Feb 28, 2024
2 of 3 checks passed
@jsign jsign mentioned this pull request Mar 5, 2024
gballet pushed a commit that referenced this pull request May 7, 2024
gballet pushed a commit that referenced this pull request May 8, 2024
gballet pushed a commit that referenced this pull request May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants