Skip to content

Commit a42cf66

Browse files
committed
fix(forks): Add type-4 transactions to Prague
1 parent bf92d7c commit a42cf66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ethereum_test_forks/forks/forks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,11 @@ def precompiles(cls, block_number: int = 0, timestamp: int = 0) -> List[Address]
10741074
block_number, timestamp
10751075
)
10761076

1077+
@classmethod
1078+
def tx_types(cls, block_number: int = 0, timestamp: int = 0) -> List[int]:
1079+
"""At Prague, set-code type transactions are introduced."""
1080+
return [4] + super(Prague, cls).tx_types(block_number, timestamp)
1081+
10771082
@classmethod
10781083
def gas_costs(cls, block_number: int = 0, timestamp: int = 0) -> GasCosts:
10791084
"""

0 commit comments

Comments
 (0)