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(fw): EOF - Add `containerKind` to EOF fixtures, add `--initcode` flag when calling evmone-eofparse #651

Closed marioevz closed 3 months ago

marioevz commented 3 months ago

🗒️ Description

Introduces kind field in the Container class and the EOFTest class, used to mark a container as a specific kind of container, such as "INITCODE". When the field is set:

Example of a test fixture JSON file after this change:

{
    "tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py::test_all_opcodes_in_container[fork_CancunEIP7692-eof_test-opcode_STOP]": {
        "vectors": {
            "0": {
                "code": "0xef00010100040200010029030001001404002000008000146000600060006000600060006000600060006000600060006000600060006000600060006000600000ef000101000402000100010400000000800000001122334455667788112233445566778811223344556677881122334455667788",
                "containerKind": "INITCODE",  # NEW FIELD
                "results": {
                    "Prague": {
                        "result": true
                    }
                }
            }
        }
    }
}

🔗 Related Issues

None

✅ Checklist