Skip to content

Commit d77d3a4

Browse files
refactor unop worst case
1 parent 12aceb8 commit d77d3a4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/benchmark/test_worst_compute.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ def test_worst_binop_simple(
14571457

14581458
setup = Op.CALLDATALOAD(0) + Op.CALLDATALOAD(32) + Op.DUP2 + Op.DUP2
14591459
attack_block = Op.DUP2 + opcode
1460-
cleanup = Op.POP + Op.POP
1460+
cleanup = Op.POP + Op.POP + Op.DUP2 + Op.DUP2
14611461
tx = JumpLoopGenerator(
14621462
setup=setup, attack_block=attack_block, cleanup=cleanup
14631463
).generate_transaction(pre, gas_benchmark_value, fork)
@@ -1483,9 +1483,7 @@ def test_worst_unop(
14831483
benchmark_test(
14841484
pre=pre,
14851485
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),
14891487
)
14901488

14911489

0 commit comments

Comments
 (0)