ethereum / execution-spec-tests

A Python framework and collection of test cases to generate test vectors for Ethereum execution clients
https://ethereum.github.io/execution-spec-tests
MIT License
105 stars 72 forks source link

feat: Add `append_sections` to `ethereum_test_tools.eof.v1.Container` #653

Open marioevz opened 3 months ago

marioevz commented 3 months ago

Just as a side note, we use this pattern a lot, I think it might be worth it if we eventually implement something like:

smallest_runtime_subcontainer.append_sections(Section.Data(...))

Which could return a container copy with the extra sections and a recalculated header.

_Originally posted by @marioevz in https://github.com/ethereum/execution-spec-tests/pull/630#discussion_r1657316411_