We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12aceb8 commit d77d3a4Copy full SHA for d77d3a4
1 file changed
tests/benchmark/test_worst_compute.py
@@ -1457,7 +1457,7 @@ def test_worst_binop_simple(
1457
1458
setup = Op.CALLDATALOAD(0) + Op.CALLDATALOAD(32) + Op.DUP2 + Op.DUP2
1459
attack_block = Op.DUP2 + opcode
1460
- cleanup = Op.POP + Op.POP
+ cleanup = Op.POP + Op.POP + Op.DUP2 + Op.DUP2
1461
tx = JumpLoopGenerator(
1462
setup=setup, attack_block=attack_block, cleanup=cleanup
1463
).generate_transaction(pre, gas_benchmark_value, fork)
@@ -1483,9 +1483,7 @@ def test_worst_unop(
1483
benchmark_test(
1484
pre=pre,
1485
post={},
1486
- code_generator=JumpLoopGenerator(
1487
- setup=Op.PUSH0, attack_block=opcode, cleanup=Op.POP + Op.PUSH0
1488
- ),
+ code_generator=JumpLoopGenerator(setup=Op.PUSH0, attack_block=opcode),
1489
)
1490
1491
0 commit comments