Skip to content

Conversation

@felix314159
Copy link
Collaborator

🗒️ Description

WIP

🔗 Related Issues

✅ Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.
  • Tests: All converted JSON/YML tests from ethereum/tests have been added to converted-ethereum-tests.txt.
  • Tests: A PR with removal of converted JSON/YML tests from ethereum/tests have been opened.
  • Tests: Included the type and version of evm t8n tool used to locally execute test cases: e.g., ref with commit hash or geth 1.13.1-stable-3f40e65.
  • Tests: Ran mkdocs serve locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.

…valid_deposit_withdrawal_consolidation_requests
Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

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

Some comments on this preliminary review 🙌

Let me know if any of them needs more info.

Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

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

I mainly reviewed test_modified_withdrawal_contract.py here, but some thoughts:

  • I would use --traces when running uv run fill to make sure that the transactions are indeed correctly calling the system contract and are not failing or running out of gas.
  • My main concern with the modified contract is that it will be a bit difficult to debug if the system call is not working correctly because currently the t8n does not provide traces for the system call (although that would be a nice feature!).

If you have the modified sys-asm contract to take a look at we could also help out reviewing that 👍

@felix314159 felix314159 force-pushed the eip-7685-testcases-added branch from 4f602a2 to b61fe3e Compare March 25, 2025 16:37
Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

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

Hey, I addressed your questions in each comment, it works for me locally although I didn't check for 18 withdrawals only two.

@felix314159 felix314159 force-pushed the eip-7685-testcases-added branch from 995c2af to c1e9fc9 Compare March 28, 2025 13:08
Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

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

Some comments that I think will help in this and future tests where you have to put bytes into memory 👍

Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

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

Some comments, but I think it's close to be good to go 👍

@felix314159 felix314159 force-pushed the eip-7685-testcases-added branch from f66372c to 10f41b0 Compare April 1, 2025 08:29
Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

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

One last request, please add a item to docs/CHANGELOG.md with a one-line description of the tests added by this PR.

Thanks for the changes!

@marioevz marioevz merged commit 0fc6bd8 into ethereum:main Apr 2, 2025
11 checks passed
felix314159 added a commit to felix314159/execution-spec-tests that referenced this pull request May 16, 2025
…#1340)

* new(tests): added more cases (two contract req, one EOA req) in test_valid_deposit_withdrawal_consolidation_requests

* fixed comments

* rename test_deposits_withdrawals_consolidations.py to test_multi_type_requests.py

* changed type from ParameterSet to a union of the three request types, added mypy silencer for type warning

* added draft test of trying out a modified withdrawal contract that allows 18 withdrawals per block

* fixed docstrings

* tried to implement marios feedback

* moved test to a better suited folder (eip7002)

* parameterized test and bugfixes

* added pseudo contract that just returns withdrawals requests

* removed unnecessary offset update

* macro MSTORE now used instead of manually splitting into chunks

* Update tests/prague/eip7002_el_triggerable_withdrawals/test_modified_withdrawal_contract.py

* Datatype is ParameterSet

Co-authored-by: Mario Vega <marioevz@gmail.com>

* added pytest marker for prague, and some minor fixes

* removed comment and updated CHANGELOG.md

---------

Co-authored-by: Mario Vega <marioevz@gmail.com>
kclowes pushed a commit to kclowes/execution-spec-tests that referenced this pull request Oct 20, 2025
…#1340)

* new(tests): added more cases (two contract req, one EOA req) in test_valid_deposit_withdrawal_consolidation_requests

* fixed comments

* rename test_deposits_withdrawals_consolidations.py to test_multi_type_requests.py

* changed type from ParameterSet to a union of the three request types, added mypy silencer for type warning

* added draft test of trying out a modified withdrawal contract that allows 18 withdrawals per block

* fixed docstrings

* tried to implement marios feedback

* moved test to a better suited folder (eip7002)

* parameterized test and bugfixes

* added pseudo contract that just returns withdrawals requests

* removed unnecessary offset update

* macro MSTORE now used instead of manually splitting into chunks

* Update tests/prague/eip7002_el_triggerable_withdrawals/test_modified_withdrawal_contract.py

* Datatype is ParameterSet

Co-authored-by: Mario Vega <marioevz@gmail.com>

* added pytest marker for prague, and some minor fixes

* removed comment and updated CHANGELOG.md

---------

Co-authored-by: Mario Vega <marioevz@gmail.com>
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.

2 participants