Skip to content

Commit e745bea

Browse files
committed
Add EVMVersion.PRAGUE
1 parent f02fd2e commit e745bea

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Added
2828
- ``LocalProvider.root`` is now of type ``AccountSigner`` instead of ``Signer``. (PR_86_)
2929
- ``FallbackProvider`` now records encountered errors, and they can be accessed via the ``errors()`` method. (PR_87_)
3030
- ``BlockFilter``, ``LogFilter``, and ``PendingTransactionFilter`` are exported from the top level. (PR_87_)
31+
- ``EVMVersion.PRAGUE``. (PR_88_)
3132

3233

3334
.. _PR_81: https://github.com/fjarri-eth/pons/pull/81

pons/_compiler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ class EVMVersion(Enum):
4646
CANCUN = "cancun"
4747
"""Cancun fork, Mar 13, 2024."""
4848

49+
PRAGUE = "prague"
50+
"""Prague fork, May 7, 2025."""
51+
4952

5053
def compile_contract_file(
5154
path: str | Path,

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
@pytest.fixture
1111
def local_provider() -> LocalProvider:
12-
return LocalProvider(root_balance=Amount.ether(100), evm_version=EVMVersion.CANCUN)
12+
return LocalProvider(root_balance=Amount.ether(100), evm_version=EVMVersion.PRAGUE)
1313

1414

1515
@pytest.fixture

0 commit comments

Comments
 (0)