Skip to content

Conversation

raxhvl
Copy link
Member

@raxhvl raxhvl commented Sep 17, 2025

🗒️ Description

Test case for effects EIP-2930 transactions on EIP-7928.

cc: @nerolation

✅ Checklist

  • All: Ran fast tox checks to avoid unnecessary CI fails, see also Code Standards and Enabling Pre-commit Checks:
    uvx --with=tox-uv tox -e lint,typecheck,spellcheck,markdownlint
  • 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).

@raxhvl raxhvl self-assigned this Sep 17, 2025
@raxhvl raxhvl added scope:tests Scope: Changes EL client test cases in `./tests` type:test Type: Add/refactor fw unit tests; no fw or el client test case changes labels Sep 17, 2025
@raxhvl raxhvl changed the title feat(tests): EIP-7928 test cases for EIP-2930 transactions ✨ feat(tests): EIP-7928 test cases for EIP-2930 transactions Sep 17, 2025
@fselmo fselmo force-pushed the feat/eip-7928/test-eip-2930 branch from 94a7cc5 to 996efd8 Compare September 30, 2025 22:23
Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

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

Hey @raxhvl, not a whole lot here. Looks great to me. Just one comment for a fix before we merge. I fixed the rebase issues and the linting after rebasing.

Do you think it makes sense to keep these as a separate file? I'm not against it but I don't see a whole lot of these cases building up. I want to make sure we start toward a good organization for these test cases. Curious on your thoughts.

@raxhvl
Copy link
Member Author

raxhvl commented Oct 2, 2025

Im okay moving this file, should we create a generic test for all BAL x other eip tests? something like test_block_access_lists_cross_eips.py

@fselmo
Copy link
Collaborator

fselmo commented Oct 2, 2025

Im okay moving this file, should we create a generic test for all BAL x other eip tests? something like test_block_access_lists_cross_eips.py

I think we can make a better decision as the tests grow. I don't love the generic name either because some tests in the main file might also touch on EIPs, etc. For now, let's stick to the for-better-or-for-worse convention of being OK with many tests being in the "main" file (e.g. blob_txs, set_code_txs).

Copy link
Collaborator

@fselmo fselmo left a comment

Choose a reason for hiding this comment

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

lgtm! Thanks!

raxhvl and others added 5 commits October 2, 2025 16:04
🧹 chore(tests): Move to new test file
✨ feat(tests): EIP-7928test_bal_2930_slot_listed_and_unlisted_reads
✨ feat(tests): EIP-7928 test_bal_2930_slot_listed_and_unlisted_writes
✨ feat(tests): EIP-7928 test_bal_2930_slot_listed_but_untouched
@fselmo fselmo force-pushed the feat/eip-7928/test-eip-2930 branch from 0c6bf2b to 8471ae5 Compare October 2, 2025 22:06
@fselmo fselmo force-pushed the feat/eip-7928/test-eip-2930 branch from a954e50 to 817ad0f Compare October 2, 2025 22:58
@fselmo
Copy link
Collaborator

fselmo commented Oct 2, 2025

Hey @raxhvl, your comment here made me want to double check all cases and I found another validation issue. This time it affected a test in the latest release. I think we should be good now 🤞🏼.

The empty account changes expectation was not being validated properly. Wanted to flag the fix in this commit where there was a balance transfer present, so not entirely empty expectation. just so you're aware in case any client teams flag this test case. And I will post it in the R&D channel as well.


edit: Actually, the filling here should be fine. Since this was on the validation side of things and the specs were correct, we still use the correct BAL in our filled test... it's just the expectation validation that needed the change. Client teams should be OK. The BAL will just change to not include the balance transfer in the future.

@fselmo fselmo merged commit 476f3c3 into main Oct 2, 2025
16 checks passed
@fselmo fselmo deleted the feat/eip-7928/test-eip-2930 branch October 2, 2025 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:tests Scope: Changes EL client test cases in `./tests` type:test Type: Add/refactor fw unit tests; no fw or el client test case changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants