Skip to content

Commit df8f2ad

Browse files
jsignmarioevz
andcommitted
Update tests/zkevm/test_worst_compute.py
Co-authored-by: Mario Vega <marioevz@gmail.com>
1 parent b9ceb35 commit df8f2ad

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
@@ -143,7 +143,7 @@ def test_worst_modexp(
143143
mul_complexity = math.ceil(base_mod_length / 8) ** 2
144144
iter_complexity = exp.bit_length() - 1
145145
gas_cost = math.floor((mul_complexity * iter_complexity) / 3)
146-
attack_block = Op.STATICCALL(gas_cost, 0x5, 0, 32 * 6, 0, 0) + Op.POP
146+
attack_block = Op.POP(Op.STATICCALL(gas_cost, 0x5, 0, 32 * 6, 0, 0))
147147

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

0 commit comments

Comments
 (0)