Skip to content

Commit 8d0fc3e

Browse files
LouisTsai-Csiespencer-tb
authored andcommitted
refactor: update valid fork configuration
1 parent fcadcb5 commit 8d0fc3e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/osaka/eip7883_modexp_gas_increase/test_modexp_thresholds.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@
1818
REFERENCE_SPEC_GIT_PATH = ref_spec_7883.git_path
1919
REFERENCE_SPEC_VERSION = ref_spec_7883.version
2020

21-
pytestmark = pytest.mark.valid_from("Osaka")
22-
2321

2422
@pytest.mark.parametrize(
2523
"modexp_input,modexp_expected,gas_old,gas_new",
2624
vectors_from_file("vectors.json"),
2725
ids=lambda v: v.name,
2826
)
27+
@pytest.mark.valid_from("Berlin")
2928
def test_vectors_from_eip(
3029
state_test: StateTestFiller,
3130
pre: Alloc,
@@ -45,6 +44,7 @@ def test_vectors_from_eip(
4544
vectors_from_file("legacy.json"),
4645
ids=lambda v: v.name,
4746
)
47+
@pytest.mark.valid_from("Berlin")
4848
def test_vectors_from_legacy_tests(
4949
state_test: StateTestFiller,
5050
pre: Alloc,
@@ -85,6 +85,7 @@ def test_vectors_from_legacy_tests(
8585
],
8686
)
8787
@EIPChecklist.Precompile.Test.Inputs.AllZeros
88+
@pytest.mark.valid_from("Berlin")
8889
def test_modexp_invalid_inputs(
8990
state_test: StateTestFiller,
9091
pre: Alloc,
@@ -144,6 +145,7 @@ def test_modexp_invalid_inputs(
144145
),
145146
],
146147
)
148+
@pytest.mark.valid_from("Osaka")
147149
def test_modexp_boundary_inputs(
148150
state_test: StateTestFiller,
149151
pre: Alloc,
@@ -177,6 +179,7 @@ def test_modexp_boundary_inputs(
177179
@EIPChecklist.Precompile.Test.CallContexts.Delegate
178180
@EIPChecklist.Precompile.Test.CallContexts.Callcode
179181
@EIPChecklist.Precompile.Test.CallContexts.Normal
182+
@pytest.mark.valid_from("Berlin")
180183
def test_modexp_call_operations(
181184
state_test: StateTestFiller,
182185
pre: Alloc,
@@ -220,6 +223,7 @@ def test_modexp_call_operations(
220223
@EIPChecklist.Precompile.Test.ValueTransfer.Fee.Over
221224
@EIPChecklist.Precompile.Test.ValueTransfer.Fee.Exact
222225
@EIPChecklist.Precompile.Test.ValueTransfer.Fee.Under
226+
@pytest.mark.valid_from("Berlin")
223227
def test_modexp_gas_usage_contract_wrapper(
224228
state_test: StateTestFiller,
225229
pre: Alloc,
@@ -256,6 +260,7 @@ def test_modexp_gas_usage_contract_wrapper(
256260
),
257261
],
258262
)
263+
@pytest.mark.valid_from("Berlin")
259264
def test_modexp_used_in_transaction_entry_points(
260265
state_test: StateTestFiller,
261266
pre: Alloc,
@@ -397,6 +402,7 @@ def create_modexp_variable_gas_test_cases():
397402
"modexp_input,modexp_expected",
398403
create_modexp_variable_gas_test_cases(),
399404
)
405+
@pytest.mark.valid_from("Berlin")
400406
def test_modexp_variable_gas_cost(
401407
state_test: StateTestFiller,
402408
pre: Alloc,

0 commit comments

Comments
 (0)