ethereum / tests

Common tests for all Ethereum implementations
MIT License
558 stars 319 forks source link

EOF state tests generated by evmone #1324

Open gumb0 opened 11 months ago

gumb0 commented 11 months ago

Replaces #1204

These tests are generated by evmone from unit tests written in C++, so they don't have a regular source / filler files.

The source of these files (contains all post-state expectations and readable bytecodes) can be found in these files: https://github.com/ethereum/evmone/blob/eof-create4/test/unittests/state_transition_eof_create_test.cpp https://github.com/ethereum/evmone/blob/eof-create4/test/unittests/state_transition_eof_calls_test.cpp https://github.com/ethereum/evmone/blob/eof-create4/test/unittests/state_transition_extcode_test.cpp

Look for the test with the same name as json test there.

Note that TXCREATE tests require an addition to state test format: initcodes array field inside transaction: https://github.com/ethereum/tests/blob/593089a866d1e67a040177a8731787d2bbef79ec/EIPTests/StateTests/stEOF/stCreate4/create4_deploy_code_with_dataloadn_invalid.json#L44