File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed
tests/prague/eip6110_deposits Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -548,6 +548,12 @@ def pre(
548
548
request : pytest .FixtureRequest ,
549
549
) -> Generator [Alloc , None , None ]:
550
550
"""Return default pre allocation for all tests (Empty alloc)."""
551
+ # FIXME: Static tests dont have a fork so we need to get it from the node.
552
+ actual_fork = fork
553
+ if actual_fork is None :
554
+ assert hasattr (request .node , "fork" )
555
+ actual_fork = request .node .fork
556
+
551
557
# Record the starting balance of the sender
552
558
sender_test_starting_balance = eth_rpc .get_balance (sender_key )
553
559
Original file line number Diff line number Diff line change @@ -434,13 +434,20 @@ def pre(
434
434
contract_address_iterator : Iterator [Address ],
435
435
eoa_iterator : Iterator [EOA ],
436
436
evm_code_type : EVMCodeType ,
437
- fork : Fork ,
437
+ fork : Fork | None ,
438
+ request : pytest .FixtureRequest ,
438
439
) -> Alloc :
439
440
"""Return default pre allocation for all tests (Empty alloc)."""
441
+ # FIXME: Static tests dont 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
+
440
447
return Alloc (
441
448
alloc_mode = alloc_mode ,
442
449
contract_address_iterator = contract_address_iterator ,
443
450
eoa_iterator = eoa_iterator ,
444
- fork = fork ,
451
+ fork = actual_fork ,
445
452
evm_code_type = evm_code_type ,
446
453
)
Original file line number Diff line number Diff line change 318
318
signature = 0x03 ,
319
319
index = i ,
320
320
)
321
- for i in range (500 )
321
+ for i in range (450 )
322
322
],
323
323
tx_gas_limit = 16_777_216 ,
324
324
),
490
490
index = i ,
491
491
valid = False ,
492
492
)
493
- for i in range (500 )
493
+ for i in range (450 )
494
494
],
495
495
tx_gas_limit = 10_000_000 ,
496
496
),
You can’t perform that action at this time.
0 commit comments