Skip to content

Commit 3295609

Browse files
committed
fix: static tests broke due to rebase
1 parent ea18e16 commit 3295609

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

packages/testing/src/execution_testing/forks/forks/forks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def _base_gas_costs(
9999
"""
100100
Return dataclass with the defined gas costs constants for genesis.
101101
"""
102+
del block_number, timestamp
102103
return GasCosts(
103104
GAS_JUMPDEST=1,
104105
GAS_BASE=2,

packages/testing/src/execution_testing/forks/transition_base_fork.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from typing import Any, Callable, ClassVar, Dict, Type
44

5-
from .base_fork import BaseFork
5+
from .base_fork import BaseFork, GasCosts
66

77

88
class TransitionBaseMetaClass(type):
@@ -119,6 +119,17 @@ def with_env_gas_limit(
119119
new_cls._env_gas_limit = env_gas_limit # type: ignore[attr-defined]
120120
return new_cls
121121

122+
@classmethod
123+
def gas_costs(
124+
cls, *, block_number: int = 0, timestamp: int = 0
125+
) -> GasCosts:
126+
"""
127+
Return Gas Costs for the active fork.
128+
"""
129+
return cls.fork_at(
130+
block_number=block_number, timestamp=timestamp
131+
).gas_costs(block_number=block_number, timestamp=timestamp)
132+
122133

123134
def transition_fork(
124135
to_fork: Type[BaseFork],

0 commit comments

Comments
 (0)