File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -623,13 +623,11 @@ def test_worst_selfdestruct_created(
623
623
env = Environment ()
624
624
625
625
# Template code that will be used to deploy a large number of contracts.
626
- selfdestructable_contract_addr = pre .deploy_contract (code = Op .SELFDESTRUCT (Op .COINBASE ))
627
- initcode = Op .EXTCODECOPY (
628
- address = selfdestructable_contract_addr ,
629
- dest_offset = 0 ,
630
- offset = 0 ,
631
- size = Op .EXTCODESIZE (selfdestructable_contract_addr ),
632
- ) + Op .RETURN (0 , Op .EXTCODESIZE (selfdestructable_contract_addr ))
626
+ initcode = (
627
+ Op .MSTORE8 (0 , 0x41 ) # COINBASE
628
+ + Op .MSTORE8 (1 , 0xFF ) # SELFDESTRUCT
629
+ + Op .RETURN (0 , 2 )
630
+ )
633
631
initcode_address = pre .deploy_contract (code = initcode )
634
632
635
633
code = (
@@ -651,7 +649,7 @@ def test_worst_selfdestruct_created(
651
649
),
652
650
# Stop before we run out of gas for the whole tx execution.
653
651
# The value was found by trial-error rounded to the next 1000 multiple.
654
- condition = Op .GT (Op .GAS , 42_000 ),
652
+ condition = Op .GT (Op .GAS , 24_000 ),
655
653
)
656
654
+ Op .SSTORE (0 , 42 ) # Done for successful tx execution assertion below.
657
655
)
You can’t perform that action at this time.
0 commit comments