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.
What I did
berlin
How I did it
I took the new pricings from the EIP2929 spec. I didn't include any logic to account for hot-vs-cold access - in the same way that we always assume an SSTORE to cost 20,000 these values just give an upper-bound estimate.
I also bumped the default evm target to
berlin
. This has no effect aside from the gas estimates, as there are no new opcodes introduced.All of this is required to make the test suite pass, because the latest release of
eth-tester
now uses berlin as the default ruleset.How to verify it
Verify that the test suite is passing in the CI. I had to tweak a few tests, I tried to do so in a way such that we won't have to adjust them again for the next hardfork.
Cute Animal Picture