vm: implement BigInteger item serialization
This commit is contained in:
parent
25f77257ce
commit
cd690803cf
4 changed files with 28 additions and 4 deletions
|
@ -122,7 +122,7 @@ func (e *Element) Bytes() []byte {
|
|||
case *ByteArrayItem:
|
||||
return t.value
|
||||
case *BigIntegerItem:
|
||||
return util.ArrayReverse(t.value.Bytes()) // neoVM returns in LE
|
||||
return t.Bytes() // neoVM returns in LE
|
||||
case *BoolItem:
|
||||
if t.value {
|
||||
return []byte{1}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue