vm: accept uint32 in makeStackItem()

Interop services routinely push such things (block index, blockchain height)
onto the stack.
This commit is contained in:
Roman Khimov 2019-10-03 16:23:21 +03:00
parent d62a367900
commit 8441b31b4b

View file

@ -23,6 +23,10 @@ func makeStackItem(v interface{}) StackItem {
return &BigIntegerItem{
value: big.NewInt(val),
}
case uint32:
return &BigIntegerItem{
value: big.NewInt(int64(val)),
}
case []byte:
return &ByteArrayItem{
value: val,