Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new(tests): EOF - EIP-7620: tests for msg.depth and static flag #732

Merged
merged 5 commits into from
Aug 19, 2024

Conversation

pdobacz
Copy link
Collaborator

@pdobacz pdobacz commented Aug 7, 2024

Mainly inspired by ipsilon/eof#138 and evmone state_transition tests. Following the conventions used in #730, in particular the test test_eof_eofcreate_msg_depth is an extension of the test_eof_calls_msg_depth, just even more complex and magic. I'm not sure if this isn't too much, WDYT? It would however be good to have this (exotic) condition covered (and we decided we do want this msg.depth rule applied for various reasons).

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.

A couple of comments but overall looks good.
test_eof_eofcreate_msg_depth is a bit hard to follow because of the memory offsets.

@pdobacz pdobacz requested a review from marioevz August 9, 2024 17:10
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.

LGTM, please just apply the last comment in the remaining open discussion before merging.

@pdobacz
Copy link
Collaborator Author

pdobacz commented Aug 19, 2024

LGTM, please just apply the last comment in the remaining open discussion before merging.

Done, I've also noticed I should have simplified the memory layout, and then documented it a bit more (I agree it was very hard to follow)

@marioevz marioevz merged commit 632d151 into ethereum:main Aug 19, 2024
4 checks passed
@marioevz marioevz deleted the eofcreate-tests branch August 19, 2024 18:07
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