native: put proper Null StackItem for transfer event

nil is not a good StackItem, we have proper VM-level Null for this.
This commit is contained in:
Roman Khimov 2020-04-23 16:26:37 +03:00
parent 1dcace1594
commit 8c02c6b22c

View file

@ -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())
}