From 8441b31b4b364427a1971a4b28489c5765cf30c0 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 3 Oct 2019 16:23:21 +0300 Subject: [PATCH] vm: accept uint32 in makeStackItem() Interop services routinely push such things (block index, blockchain height) onto the stack. --- pkg/vm/stack_item.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/vm/stack_item.go b/pkg/vm/stack_item.go index b00d32383..27ec00621 100644 --- a/pkg/vm/stack_item.go +++ b/pkg/vm/stack_item.go @@ -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,