We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afc7f13 commit d2328f3Copy full SHA for d2328f3
tests/zkevm/test_worst_bytecode.py
@@ -16,7 +16,7 @@
16
17
MAX_CONTRACT_SIZE = 24 * 1024
18
GAS_LIMIT = 36_000_000
19
-MAX_NUM_CONTRACT_CALLS = (GAS_LIMIT - 21_000) // (3 + 2600)
+MAX_NUM_CONTRACT_CALLS = (GAS_LIMIT - 21_000) // (3 + 2600 + 2)
20
21
22
@pytest.mark.zkevm
@@ -43,7 +43,9 @@ def test_worst_bytecode(
43
code = Op.JUMPDEST * (MAX_CONTRACT_SIZE - 1 - 10) + Op.PUSH10(i)
44
contract_addrs.append(pre.deploy_contract(code=code))
45
46
- attack_code = sum([Op.EXTCODESIZE(contract_addrs[i]) for i in range(num_called_contracts)])
+ attack_code = sum(
47
+ [(Op.EXTCODESIZE(contract_addrs[i]) + Op.POP) for i in range(num_called_contracts)]
48
+ )
49
attack_contract = pre.deploy_contract(code=attack_code)
50
51
tx = Transaction(
0 commit comments