Skip to content

Commit 9e2d6cb

Browse files
jsignmarioevz
andauthored
Update tests/zkevm/test_worst_compute.py
Co-authored-by: Mario Vega <marioevz@gmail.com>
1 parent 0cb15db commit 9e2d6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/zkevm/test_worst_compute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def test_worst_modexp(
144144
mul_complexity = math.ceil(base_mod_length / 8) ** 2
145145
iter_complexity = exp.bit_length() - 1
146146
gas_cost = math.floor((mul_complexity * iter_complexity) / 3)
147-
attack_block = Op.STATICCALL(gas_cost, 0x5, 0, 32 * 6, 0, 0) + Op.POP
147+
attack_block = Op.POP(Op.STATICCALL(gas_cost, 0x5, 0, 32 * 6, 0, 0))
148148

149149
# The attack contract is: JUMPDEST + [attack_block]* + PUSH0 + JUMP
150150
jumpdest = Op.JUMPDEST

0 commit comments

Comments
 (0)