Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Test fixtures for use by clients are available for each release on the [Github r
- ✨ Expand cases to test *CALL opcodes causing OOG ([#1703](https://github.com/ethereum/execution-specs/pull/1703)).
- ✨ Add tests for `modexp` and `ripemd` precompiled contracts ([#1691](https://github.com/ethereum/execution-specs/pull/1691)).
- ✨ Add `ecrecover` precompile tests originating form `evmone` unittests ([#1685](https://github.com/ethereum/execution-specs/pull/1685)).
- ✨ Add test for old behavior of zero gasprice txs ([#1736](https://github.com/ethereum/execution-specs/pull/1736)).

## [v5.3.0](https://github.com/ethereum/execution-spec-tests/releases/tag/v5.3.0) - 2025-10-09

Expand Down
1 change: 1 addition & 0 deletions tests/frontier/touch/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Test for account touching behavior introduced in Frontier."""
44 changes: 44 additions & 0 deletions tests/frontier/touch/test_touch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
"""test account touch behavior."""

import pytest
from execution_testing import (
Account,
Alloc,
Environment,
Op,
StateTestFiller,
Transaction,
)


@pytest.mark.valid_from("Frontier")
@pytest.mark.valid_until("Berlin")
def test_zero_gas_price_and_touching(
state_test: StateTestFiller,
pre: Alloc,
) -> None:
"""
Test sending a zero gasprice transaction in early forks respects
account touching rules.
"""
sender = pre.fund_eoa()
value = 0x01

contract = pre.deploy_contract(
code=(Op.SSTORE(0, value) + Op.STOP),
)

tx = Transaction(
gas_limit=500_000,
to=contract,
gas_price=0,
sender=sender,
protected=False,
)

state_test(
env=Environment(),
pre=pre,
tx=tx,
post={contract: Account(storage={0: value})},
)
Loading