Skip to content

🧪 feat(tests): EIP-7928 BAL test for 7702 account call with low balance#2824

Merged
fselmo merged 4 commits into
ethereum:forks/amsterdamfrom
raxhvl:tests/7702-call-low-balance
May 11, 2026
Merged

🧪 feat(tests): EIP-7928 BAL test for 7702 account call with low balance#2824
fselmo merged 4 commits into
ethereum:forks/amsterdamfrom
raxhvl:tests/7702-call-low-balance

Conversation

@raxhvl

@raxhvl raxhvl commented May 7, 2026

Copy link
Copy Markdown
Member

🗒️ Description

Adds coverage for BAL tests targeting 7702 accounts. Checks if authority and delegate are recorded when called into with insufficient call value.

✅ Checklist

  • All: Ran fast static checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:
    just static
  • All: PR title adheres to the repo standard - it will be used as the squash commit message and should start type(scope):.
  • All: Set appropriate labels for the changes (only maintainers can apply labels).

@fselmo

fselmo commented May 7, 2026

Copy link
Copy Markdown
Contributor

@raxhvl can you run just fix and just static and fix the lint here? 👀

@raxhvl raxhvl added the C-test Category: test label May 8, 2026
@codecov

codecov Bot commented May 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.62%. Comparing base (c9d8be0) to head (6463de5).
⚠️ Report is 1 commits behind head on forks/amsterdam.

Additional details and impacted files
@@               Coverage Diff                @@
##           forks/amsterdam    #2824   +/-   ##
================================================
  Coverage            88.62%   88.62%           
================================================
  Files                  577      577           
  Lines                35659    35659           
  Branches              3490     3490           
================================================
  Hits                 31604    31604           
  Misses                3492     3492           
  Partials               563      563           
Flag Coverage Δ
unittests 88.62% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 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.

@fselmo fselmo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@raxhvl thanks for this! I made two additions, specifically in two separate commits here so we can track it:

  • first commit: I added some parametrization across warm/cold target and delegation which doesn't change anything but good to add I think. We also don't need the bal=1. Can do with / without changing that but the non-empty code (delegation designation) is enough for the account to not be empty.

  • second commit: I actually looked to add CALLCODE case as well and then thought to parametrize it all. I think it reads clean but lmk what you think... adds extra coverage here.

Also added the test to test_cases.md. Approving but lmk what your final review on my pushes are and we can merge or edit before merging 👀

@raxhvl raxhvl left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Beautiful! Thank you.

@fselmo fselmo merged commit 2eb175e into ethereum:forks/amsterdam May 11, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-test Category: test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants