Skip to content

Commit 13ab385

Browse files
fix(tests): update fork transition test
1 parent ff5427c commit 13ab385

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/osaka/eip7883_modexp_gas_increase/test_modexp_thresholds_transition.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from ethereum_test_tools import Account, Alloc, Block, BlockchainTestFiller, Transaction
77
from ethereum_test_tools.vm.opcode import Opcodes as Op
88

9+
from ...byzantium.eip198_modexp_precompile.helpers import ModExpInput
910
from .spec import Spec, ref_spec_7883
1011

1112
REFERENCE_SPEC_GIT_PATH = ref_spec_7883.git_path
@@ -17,7 +18,7 @@
1718
@pytest.mark.parametrize(
1819
"modexp_input,modexp_expected,gas_old,gas_new",
1920
[
20-
pytest.param(Spec.modexp_input, Spec.modexp_expected, 200, 500), # Should be 1200
21+
pytest.param(Spec.modexp_input, Spec.modexp_expected, 200, 1200),
2122
],
2223
)
2324
def test_modexp_fork_transition(
@@ -27,6 +28,7 @@ def test_modexp_fork_transition(
2728
gas_old: int,
2829
gas_new: int,
2930
tx_gas_limit: int,
31+
modexp_input: ModExpInput,
3032
):
3133
"""Test ModExp gas cost transition from EIP-7883 before and after the Osaka hard fork."""
3234
call_code = Op.CALL(
@@ -66,6 +68,7 @@ def test_modexp_fork_transition(
6668
txs=[
6769
Transaction(
6870
to=contract,
71+
data=modexp_input,
6972
sender=sender,
7073
gas_limit=tx_gas_limit,
7174
)

0 commit comments

Comments
 (0)