Skip to content

Commit 314072a

Browse files
danceratopzfelix314159
authored andcommitted
feat(tests): eip7623 - parametrize test_transaction_validity_type_* with a tx to an eoa (ethereum#1422)
1 parent e7eeaa5 commit 314072a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

docs/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Test fixtures for use by clients are available for each release on the [Github r
2424

2525
### 🧪 Test Cases
2626

27-
- ✨ Test 7702 precompile case in same transaction as delegation without extra gas in case of precompile code execution; parametrize all call opcodes in existing precompile test ([#1431](https://github.com/ethereum/execution-spec-tests/pull/1431)).
27+
-[EIP-7702](https://eips.ethereum.org/EIPS/eip-7702): Test precompile case in same transaction as delegation without extra gas in case of precompile code execution; parametrize all call opcodes in existing precompile test ([#1431](https://github.com/ethereum/execution-spec-tests/pull/1431)).
28+
-[EIP-7623](https://eips.ethereum.org/EIPS/eip-7623): Additionally parametrize transaction validity tests with the `to` set to an EOA account (previously only contracts) ([#1422](https://github.com/ethereum/execution-spec-tests/pull/1422)).
2829

2930
## [v4.2.0](https://github.com/ethereum/execution-spec-tests/releases/tag/v4.2.0) - 2025-04-08
3031

tests/prague/eip7623_increase_calldata_cost/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def to(
4343

4444
if param is None:
4545
return None
46-
if isinstance(param, Address):
47-
return param
46+
if isinstance(param, str) and param == "eoa":
47+
return pre.fund_eoa(amount=0)
4848
if isinstance(param, Bytecode):
4949
return pre.deploy_contract(param)
5050

tests/prague/eip7623_increase_calldata_cost/test_transaction_validity.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
@pytest.mark.parametrize(
7171
"to",
7272
[
73+
pytest.param("eoa", id="to_eoa"),
7374
pytest.param(None, id="contract_creating"),
7475
pytest.param(Op.STOP, id=""),
7576
],
@@ -91,6 +92,7 @@ def test_transaction_validity_type_0(
9192
@pytest.mark.parametrize(
9293
"to",
9394
[
95+
pytest.param("eoa", id="to_eoa"),
9496
pytest.param(None, id="contract_creating"),
9597
pytest.param(Op.STOP, id=""),
9698
],

0 commit comments

Comments
 (0)