Skip to content

Commit b2df5ca

Browse files
committed
drop gas_limit param
1 parent 5c1edd8 commit b2df5ca

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tests/zkevm/test_worst_compute.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,6 @@ def test_worst_modexp(
185185

186186

187187
@pytest.mark.valid_from("Cancun")
188-
@pytest.mark.parametrize(
189-
"gas_limit",
190-
[
191-
Environment().gas_limit,
192-
],
193-
)
194188
@pytest.mark.parametrize(
195189
"opcode,opcode_args",
196190
[
@@ -310,7 +304,6 @@ def test_worst_modexp(
310304
def test_worst_binop_simple(
311305
blockchain_test: BlockchainTestFiller,
312306
pre: Alloc,
313-
gas_limit: int,
314307
opcode: Op,
315308
opcode_args: tuple[int, int],
316309
):
@@ -319,7 +312,7 @@ def test_worst_binop_simple(
319312
as possible. The execution starts with two initial values on the stack, and the stack is
320313
balanced by the DUP2 instruction.
321314
"""
322-
env = Environment(gas_limit=gas_limit)
315+
env = Environment()
323316

324317
tx_data = b"".join(arg.to_bytes(32, byteorder="big") for arg in opcode_args)
325318

@@ -333,7 +326,7 @@ def test_worst_binop_simple(
333326
tx = Transaction(
334327
to=pre.deploy_contract(code=code),
335328
data=tx_data,
336-
gas_limit=gas_limit,
329+
gas_limit=env.gas_limit,
337330
sender=pre.fund_eoa(),
338331
)
339332

0 commit comments

Comments
 (0)