Skip to content

feat(tests): add ef_prefix deposit-halt mode to EIP-8037 state-gas test - #3233

Merged
spencer-tb merged 2 commits into
ethereum:forks/amsterdamfrom
chfast:test/eip8037-ef-prefix-deposit-halt
Jul 27, 2026
Merged

feat(tests): add ef_prefix deposit-halt mode to EIP-8037 state-gas test#3233
spencer-tb merged 2 commits into
ethereum:forks/amsterdamfrom
chfast:test/eip8037-ef-prefix-deposit-halt

Conversation

@chfast

@chfast chfast commented Jul 25, 2026

Copy link
Copy Markdown
Member

Description

test_code_deposit_halt_discards_initcode_state_gas parametrized deposit_fail_mode over oversized_code and oog_deposit only. Add a third ef_prefix mode returning a single 0xEF byte: it passes the code-size check but is rejected by EIP-3541, a distinct deployment-halt path. With stateful initcode (call_new_account / inner_create) it must discard the initcode GAS_NEW_ACCOUNT state gas exactly like the other two modes. Filled fixtures confirm identical block gasUsed across all three modes.

Related Issues or PRs

Closes #2963

Checklist

  • Ran fast static checks to avoid CI fails, see Code Standards & Verifying Changes: just static
  • PR title has the form <type>(<area>): <title>, where <type> and <area> come from an appropriate C-<type>, respectively A-<area>, label. The title should match the target squash commit message.

`test_code_deposit_halt_discards_initcode_state_gas` parametrized
`deposit_fail_mode` over `oversized_code` and `oog_deposit` only. Add
a third `ef_prefix` mode returning a single 0xEF byte: it passes the
code-size check but is rejected by EIP-3541, a distinct deployment-halt
path. With stateful initcode (`call_new_account` / `inner_create`) it
must discard the initcode GAS_NEW_ACCOUNT state gas exactly like the
other two modes. Filled fixtures confirm identical block gasUsed
across all three modes.

Closes ethereum#2963

Claude-Session: https://claude.ai/code/session_019YyttTB1mqHzWa77K3sEoT
@codecov

codecov Bot commented Jul 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.41%. Comparing base (1646cf5) to head (4c2b920).
⚠️ Report is 8 commits behind head on forks/amsterdam.

Additional details and impacted files
@@               Coverage Diff                @@
##           forks/amsterdam    #3233   +/-   ##
================================================
  Coverage            93.41%   93.41%           
================================================
  Files                  624      624           
  Lines                37014    37014           
  Branches              3386     3386           
================================================
  Hits                 34576    34576           
  Misses                1668     1668           
  Partials               770      770           
Flag Coverage Δ
unittests 93.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@spencer-tb
spencer-tb merged commit 7c4177a into ethereum:forks/amsterdam Jul 27, 2026
20 checks passed
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.

EIP-8037: test_code_deposit_halt_discards_initcode_state_gas missing ef_prefix (EIP-3541) deposit-failure mode

2 participants