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

feat(docs/tests): EOF: Update tracker, add unimplemented tests #773

Merged
merged 5 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/ethereum_test_types/eof/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ class Container(CopyValidateModel):
Body: type section first, all code sections, data section(s), last
container sections
"""
skip_join_concurrent_sections_in_header: bool = False
"""
Skip joining concurrent sections in the header (code and container)
"""
validity_error: EOFExceptionInstanceOrList | str | None = None
"""
Optional error expected for the container.
Expand Down Expand Up @@ -435,7 +439,10 @@ def bytecode(self) -> bytes:
# Join headers of the same kind in a list of lists, only if they are next to each other
concurrent_sections: List[List[Section]] = [[header_sections[0]]]
for s in header_sections[1:]:
if s.kind == concurrent_sections[-1][-1].kind:
if (
s.kind == concurrent_sections[-1][-1].kind
and not self.skip_join_concurrent_sections_in_header
):
concurrent_sections[-1].append(s)
else:
concurrent_sections.append([s])
Expand Down
Loading