|
17 | 17 | from .common import CallArgs, generate_identity_call_bytecode
|
18 | 18 |
|
19 | 19 |
|
| 20 | +@pytest.mark.ported_from( |
| 21 | + [ |
| 22 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CALLCODEIdentitiy_0.json", |
| 23 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CALLCODEIdentitiy_1.json", |
| 24 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CALLCODEIdentity_1_nonzeroValue.json", |
| 25 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CALLCODEIdentitiy_2.json", |
| 26 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CALLCODEIdentitiy_3.json", |
| 27 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CALLCODEIdentity_4.json", |
| 28 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CALLCODEIdentity_4_gas17.json", |
| 29 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CALLCODEIdentity_4_gas18.json", |
| 30 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CallIdentitiy_0.json", |
| 31 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CallIdentitiy_1.json", |
| 32 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CallIdentitiy_1_nonzeroValue.json", |
| 33 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CallIdentitiy_2.json", |
| 34 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CallIdentitiy_3.json", |
| 35 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CallIdentitiy_4.json", |
| 36 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CallIdentitiy_4_gas17.json", |
| 37 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CallIdentitiy_4_gas18.json", |
| 38 | + ], |
| 39 | + pr=["https://github.com/ethereum/execution-spec-tests/pull/1344"], |
| 40 | +) |
20 | 41 | @pytest.mark.valid_from("Byzantium")
|
21 | 42 | @pytest.mark.parametrize("call_type", [Op.CALL, Op.CALLCODE])
|
22 | 43 | @pytest.mark.parametrize(
|
@@ -108,6 +129,14 @@ def test_call_identity_precompile(
|
108 | 129 | state_test(env=env, pre=pre, post=post, tx=tx)
|
109 | 130 |
|
110 | 131 |
|
| 132 | +@pytest.mark.ported_from( |
| 133 | + [ |
| 134 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CALLCODEIdentitiy_5.json", |
| 135 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CallIdentitiy_5.json", |
| 136 | + "https://github.com/ethereum/tests/blob/v17.1/GeneralStateTests/stPreCompiledContracts2/CallIdentitiy_6.json", |
| 137 | + ], |
| 138 | + pr=["https://github.com/ethereum/execution-spec-tests/pull/1344"], |
| 139 | +) |
111 | 140 | @pytest.mark.valid_from("Byzantium")
|
112 | 141 | @pytest.mark.parametrize("call_type", [Op.CALL, Op.CALLCODE])
|
113 | 142 | @pytest.mark.parametrize(
|
|
0 commit comments