forked from TrueCloudLab/neoneo-go
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:
parent
1dcace1594
commit
8c02c6b22c
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ func (c *nep5TokenNative) Transfer(ic *interop.Context, args []vm.StackItem) vm.
|
||||||
|
|
||||||
func addrToStackItem(u *util.Uint160) vm.StackItem {
|
func addrToStackItem(u *util.Uint160) vm.StackItem {
|
||||||
if u == nil {
|
if u == nil {
|
||||||
return nil
|
return vm.NullItem{}
|
||||||
}
|
}
|
||||||
return vm.NewByteArrayItem(u.BytesBE())
|
return vm.NewByteArrayItem(u.BytesBE())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue