Skip to content

Commit d4394d7

Browse files
committed
fix(tests,eof): Specify Env(gas_limit)
1 parent b11e439 commit d4394d7

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

tests/unscheduled/eip7692_eof_v1/eip7069_extcall/test_calldata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def test_extcalls_input_offset(
507507
The `test_arg` param is the value passed into the field being tested (offset or size),
508508
intending to trigger integer size bugs for that particular field.
509509
"""
510-
env = Environment()
510+
env = Environment(gas_limit=1_000_000_000)
511511

512512
sender = pre.fund_eoa()
513513

tests/unscheduled/eip7692_eof_v1/eip7620_eof_create/test_eofcreate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,9 @@ def test_address_collision(
486486
pre: Alloc,
487487
):
488488
"""Tests address collision."""
489-
env = Environment()
489+
env = Environment(
490+
gas_limit=300_000_000_000,
491+
)
490492

491493
slot_create_address_2 = slot_last_slot * 2 + slot_create_address
492494
slot_create_address_3 = slot_last_slot * 3 + slot_create_address

tests/unscheduled/eip7692_eof_v1/eip7620_eof_create/test_memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_eofcreate_memory(
7575
The `test_arg` param is the value passed into the field being tested (offset or size),
7676
intending to trigger integer size bugs for that particular field.
7777
"""
78-
env = Environment()
78+
env = Environment(gas_limit=2_000_000_000)
7979

8080
sender = pre.fund_eoa(10**27)
8181

tests/unscheduled/eip7692_eof_v1/eip7620_eof_create/test_returncode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def test_returncode_memory_expansion(
216216
The `test_arg` param is the value passed into the field being tested (offset or size),
217217
intending to trigger integer size bugs for that particular field.
218218
"""
219-
env = Environment()
219+
env = Environment(gas_limit=2_000_000_000)
220220
sender = pre.fund_eoa(10**27)
221221

222222
eof_size_acceptable = offset_field or test_arg < MAX_BYTECODE_SIZE

tests/unscheduled/eip7692_eof_v1/eip7873_tx_create/test_txcreate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,9 @@ def test_address_collision(
446446
pre: Alloc,
447447
):
448448
"""Tests address collision."""
449-
env = Environment()
449+
env = Environment(
450+
gas_limit=300_000_000_000,
451+
)
450452

451453
slot_create_address_2 = slot_last_slot * 2 + slot_create_address
452454
slot_create_address_3 = slot_last_slot * 3 + slot_create_address

0 commit comments

Comments
 (0)