Skip to content

Commit b8b7d39

Browse files
committed
use push1(0) instead of push0
1 parent accc764 commit b8b7d39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/frontier/opcodes/test_push.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_stack_overflow(
115115
"""
116116
contract_code: Bytecode = Bytecode()
117117
for _ in range(stack_height - 2):
118-
contract_code += Op.PUSH0 # mostly use push0 to avoid contract size limit exceeded
118+
contract_code += Op.PUSH1(0) # mostly push 0 to avoid contract size limit exceeded
119119
contract_code += push_opcode(excerpt) * 2 + Op.SSTORE
120120

121121
contract = pre.deploy_contract(contract_code)

0 commit comments

Comments
 (0)