Skip to content

Commit 36a114f

Browse files
committed
chore(ci|tests|fill): fixes for releases.
1 parent 2ad649c commit 36a114f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

src/pytest_plugins/filler/pre_alloc.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,20 @@ def pre(
434434
contract_address_iterator: Iterator[Address],
435435
eoa_iterator: Iterator[EOA],
436436
evm_code_type: EVMCodeType,
437-
fork: Fork,
437+
fork: Fork | None,
438+
request: pytest.FixtureRequest,
438439
) -> Alloc:
439440
"""Return default pre allocation for all tests (Empty alloc)."""
441+
# FIXME: Static tests don't have a fork, so we need to get it from the node.
442+
actual_fork = fork
443+
if actual_fork is None:
444+
assert hasattr(request.node, "fork")
445+
actual_fork = request.node.fork
446+
440447
return Alloc(
441448
alloc_mode=alloc_mode,
442449
contract_address_iterator=contract_address_iterator,
443450
eoa_iterator=eoa_iterator,
444-
fork=fork,
451+
fork=actual_fork,
445452
evm_code_type=evm_code_type,
446453
)

tests/prague/eip6110_deposits/test_deposits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
signature=0x03,
319319
index=i,
320320
)
321-
for i in range(500)
321+
for i in range(450)
322322
],
323323
tx_gas_limit=16_777_216,
324324
),
@@ -490,7 +490,7 @@
490490
index=i,
491491
valid=False,
492492
)
493-
for i in range(500)
493+
for i in range(450)
494494
],
495495
tx_gas_limit=10_000_000,
496496
),

0 commit comments

Comments
 (0)