18
18
REFERENCE_SPEC_GIT_PATH = ref_spec_7883 .git_path
19
19
REFERENCE_SPEC_VERSION = ref_spec_7883 .version
20
20
21
- pytestmark = pytest .mark .valid_from ("Osaka" )
22
-
23
21
24
22
@pytest .mark .parametrize (
25
23
"modexp_input,modexp_expected,gas_old,gas_new" ,
26
24
vectors_from_file ("vectors.json" ),
27
25
ids = lambda v : v .name ,
28
26
)
27
+ @pytest .mark .valid_from ("Berlin" )
29
28
def test_vectors_from_eip (
30
29
state_test : StateTestFiller ,
31
30
pre : Alloc ,
@@ -45,6 +44,7 @@ def test_vectors_from_eip(
45
44
vectors_from_file ("legacy.json" ),
46
45
ids = lambda v : v .name ,
47
46
)
47
+ @pytest .mark .valid_from ("Berlin" )
48
48
def test_vectors_from_legacy_tests (
49
49
state_test : StateTestFiller ,
50
50
pre : Alloc ,
@@ -85,6 +85,7 @@ def test_vectors_from_legacy_tests(
85
85
],
86
86
)
87
87
@EIPChecklist .Precompile .Test .Inputs .AllZeros
88
+ @pytest .mark .valid_from ("Berlin" )
88
89
def test_modexp_invalid_inputs (
89
90
state_test : StateTestFiller ,
90
91
pre : Alloc ,
@@ -144,6 +145,7 @@ def test_modexp_invalid_inputs(
144
145
),
145
146
],
146
147
)
148
+ @pytest .mark .valid_from ("Osaka" )
147
149
def test_modexp_boundary_inputs (
148
150
state_test : StateTestFiller ,
149
151
pre : Alloc ,
@@ -177,6 +179,7 @@ def test_modexp_boundary_inputs(
177
179
@EIPChecklist .Precompile .Test .CallContexts .Delegate
178
180
@EIPChecklist .Precompile .Test .CallContexts .Callcode
179
181
@EIPChecklist .Precompile .Test .CallContexts .Normal
182
+ @pytest .mark .valid_from ("Berlin" )
180
183
def test_modexp_call_operations (
181
184
state_test : StateTestFiller ,
182
185
pre : Alloc ,
@@ -220,6 +223,7 @@ def test_modexp_call_operations(
220
223
@EIPChecklist .Precompile .Test .ValueTransfer .Fee .Over
221
224
@EIPChecklist .Precompile .Test .ValueTransfer .Fee .Exact
222
225
@EIPChecklist .Precompile .Test .ValueTransfer .Fee .Under
226
+ @pytest .mark .valid_from ("Berlin" )
223
227
def test_modexp_gas_usage_contract_wrapper (
224
228
state_test : StateTestFiller ,
225
229
pre : Alloc ,
@@ -256,6 +260,7 @@ def test_modexp_gas_usage_contract_wrapper(
256
260
),
257
261
],
258
262
)
263
+ @pytest .mark .valid_from ("Berlin" )
259
264
def test_modexp_used_in_transaction_entry_points (
260
265
state_test : StateTestFiller ,
261
266
pre : Alloc ,
@@ -397,6 +402,7 @@ def create_modexp_variable_gas_test_cases():
397
402
"modexp_input,modexp_expected" ,
398
403
create_modexp_variable_gas_test_cases (),
399
404
)
405
+ @pytest .mark .valid_from ("Berlin" )
400
406
def test_modexp_variable_gas_cost (
401
407
state_test : StateTestFiller ,
402
408
pre : Alloc ,
0 commit comments