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

Fix SSTORE gas cost in fork mode #1172

Merged
merged 2 commits into from
Jan 13, 2021
Merged

Fix SSTORE gas cost in fork mode #1172

merged 2 commits into from
Jan 13, 2021

Conversation

alcuadrado
Copy link
Member

This PR fixes the cost of SSTORE. Before this PR writing a value that used to be zero was incorrectly priced.

@alcuadrado alcuadrado merged commit 5ae8592 into master Jan 13, 2021
@alcuadrado alcuadrado deleted the fix-gas-fork branch January 13, 2021 16:21
@gitpusha
Copy link

gitpusha commented Jan 15, 2021

I just upgraded to hardhat 2.0.8 which includes this fix and now my codechecks gas-reporter is shouting at me because gas increased.

Awesome!

I think this fixes part of : #990 ?

However, I just checked and the tests I have gas reporter accuracy issues with still have the same gas values even after this fix. So unfortunately I still think there are incorrect gas pricings in hardhat forkmode.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants