File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1457,7 +1457,7 @@ def test_worst_binop_simple(
1457
1457
1458
1458
setup = Op .CALLDATALOAD (0 ) + Op .CALLDATALOAD (32 ) + Op .DUP2 + Op .DUP2
1459
1459
attack_block = Op .DUP2 + opcode
1460
- cleanup = Op .POP + Op .POP
1460
+ cleanup = Op .POP + Op .POP + Op . DUP2 + Op . DUP2
1461
1461
tx = JumpLoopGenerator (
1462
1462
setup = setup , attack_block = attack_block , cleanup = cleanup
1463
1463
).generate_transaction (pre , gas_benchmark_value , fork )
@@ -1483,9 +1483,7 @@ def test_worst_unop(
1483
1483
benchmark_test (
1484
1484
pre = pre ,
1485
1485
post = {},
1486
- code_generator = JumpLoopGenerator (
1487
- setup = Op .PUSH0 , attack_block = opcode , cleanup = Op .POP + Op .PUSH0
1488
- ),
1486
+ code_generator = JumpLoopGenerator (setup = Op .PUSH0 , attack_block = opcode ),
1489
1487
)
1490
1488
1491
1489
You can’t perform that action at this time.
0 commit comments