Skip to content

[pull] forks/amsterdam from ethereum:forks/amsterdam#145

Merged
pull[bot] merged 2 commits intoLuckQuack:forks/amsterdamfrom
ethereum:forks/amsterdam
Mar 30, 2026
Merged

[pull] forks/amsterdam from ethereum:forks/amsterdam#145
pull[bot] merged 2 commits intoLuckQuack:forks/amsterdamfrom
ethereum:forks/amsterdam

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Mar 30, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

nerolation and others added 2 commits March 30, 2026 08:25
* move files, add helpers

* chore: move files to descriptive dirname

* chore: make ruff happy

* CLAUDE: remove hardcoded gas calculations

* CLAUDE: move repeated constant bytecode patterns to helpers

* chore: make ruff happy

* fix: CLAUDE: use BenchmarkTestFiller

* feat: CLAUDE: use benchmark test runner instead of blockchain

* feat: CLAUDE: cleanup tests

* feat: claude: simplify compute/sload test

* feat: CLAUDE: start cursor in slot 0 value 1

* feat: remove simple evariants and lint

* feat: relax storage expectations

* fix: skip gas calculation

* feat: tests: enforce gas benchmark values

* fix(benchmark): ensure right order Op.GT

* fix(benchmarks): make ruff/mypy happy

* feat(benchmarks): bal sload in reverse, one tx sender

* fix(test): fixes and refactors for PR #2033

- Refactor contract bytecode into helper chunks. We were previously
  re-creating the same bytecode jsut to calculate the gas and this
  already had a bug. This DRYs this up and uses the actual bytecode
  to get the `gas_cost(fork)` from it.
- Some fixes for gas calculation by using the appropriate metadata
  for SSTORE for `cursor_write` as the slot is warm here (less cost).

* fix(benchmark): account for 63/64 gas rule in cross-contract chase

The `chain_length` calculation divided available gas flat, ignoring that
nested `CALL`s forward only 63/64 at each depth. This deployed
unreachable contracts whose BAL expectations failed. Simulate the
compounding gas loss to compute the actual reachable depth.

* fix: clean up specs; update specref for 7928

* benchmarks: temp remove contract chase to fix in another PR

---------

Co-authored-by: Jochem Brouwer <jochembrouwer96@gmail.com>
Co-authored-by: fselmo <fselmo2@gmail.com>
* refactor(specs): add `has_access_list` fn for transaction types

* refactor: apply suggestions from code review
@pull pull bot locked and limited conversation to collaborators Mar 30, 2026
@pull pull bot added the ⤵️ pull label Mar 30, 2026
@pull pull bot merged commit b7fe325 into LuckQuack:forks/amsterdam Mar 30, 2026
@pull pull bot had a problem deploying to github-pages March 30, 2026 20:16 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants