vm: accept uint32 in makeStackItem()
Interop services routinely push such things (block index, blockchain height) onto the stack.
This commit is contained in:
parent
d62a367900
commit
8441b31b4b
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ func makeStackItem(v interface{}) StackItem {
|
||||||
return &BigIntegerItem{
|
return &BigIntegerItem{
|
||||||
value: big.NewInt(val),
|
value: big.NewInt(val),
|
||||||
}
|
}
|
||||||
|
case uint32:
|
||||||
|
return &BigIntegerItem{
|
||||||
|
value: big.NewInt(int64(val)),
|
||||||
|
}
|
||||||
case []byte:
|
case []byte:
|
||||||
return &ByteArrayItem{
|
return &ByteArrayItem{
|
||||||
value: val,
|
value: val,
|
||||||
|
|
Loading…
Reference in a new issue