Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
put array length and PACK at end of array
Browse files Browse the repository at this point in the history
  • Loading branch information
hal0x2328 committed Oct 3, 2017
1 parent fce2a78 commit 07f06f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion neo/Prompt/Commands/Invoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

from neo.Core.Blockchain import Blockchain

from neo.VM.OpCode import *
from neo.BigInteger import BigInteger
import traceback
import pdb
Expand Down Expand Up @@ -106,9 +107,10 @@ def TestInvokeContract(wallet, args):

if type(item) is list:
listlength = len(item)
sb.push(listlength)
for listitem in item:
sb.push(listitem)
sb.push(listlength)
sb.Emit(PACK)
else:
sb.push(item)

Expand Down

0 comments on commit 07f06f1

Please sign in to comment.