From 8c02c6b22cac5d5b95a354fa249b9cf70f109ecc Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 23 Apr 2020 16:26:37 +0300 Subject: [PATCH] native: put proper Null StackItem for transfer event nil is not a good StackItem, we have proper VM-level Null for this. --- pkg/core/native/native_nep5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/core/native/native_nep5.go b/pkg/core/native/native_nep5.go index 676437369..bb4cf8e87 100644 --- a/pkg/core/native/native_nep5.go +++ b/pkg/core/native/native_nep5.go @@ -113,7 +113,7 @@ func (c *nep5TokenNative) Transfer(ic *interop.Context, args []vm.StackItem) vm. func addrToStackItem(u *util.Uint160) vm.StackItem { if u == nil { - return nil + return vm.NullItem{} } return vm.NewByteArrayItem(u.BytesBE()) }