File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -185,12 +185,6 @@ def test_worst_modexp(
185
185
186
186
187
187
@pytest .mark .valid_from ("Cancun" )
188
- @pytest .mark .parametrize (
189
- "gas_limit" ,
190
- [
191
- Environment ().gas_limit ,
192
- ],
193
- )
194
188
@pytest .mark .parametrize (
195
189
"opcode,opcode_args" ,
196
190
[
@@ -310,7 +304,6 @@ def test_worst_modexp(
310
304
def test_worst_binop_simple (
311
305
blockchain_test : BlockchainTestFiller ,
312
306
pre : Alloc ,
313
- gas_limit : int ,
314
307
opcode : Op ,
315
308
opcode_args : tuple [int , int ],
316
309
):
@@ -319,7 +312,7 @@ def test_worst_binop_simple(
319
312
as possible. The execution starts with two initial values on the stack, and the stack is
320
313
balanced by the DUP2 instruction.
321
314
"""
322
- env = Environment (gas_limit = gas_limit )
315
+ env = Environment ()
323
316
324
317
tx_data = b"" .join (arg .to_bytes (32 , byteorder = "big" ) for arg in opcode_args )
325
318
@@ -333,7 +326,7 @@ def test_worst_binop_simple(
333
326
tx = Transaction (
334
327
to = pre .deploy_contract (code = code ),
335
328
data = tx_data ,
336
- gas_limit = gas_limit ,
329
+ gas_limit = env . gas_limit ,
337
330
sender = pre .fund_eoa (),
338
331
)
339
332
You can’t perform that action at this time.
0 commit comments