forked from TrueCloudLab/neoneo-go
vm: add InteropItem type for interop data
This is an opaque data item that is to be used by the interop functions.
This commit is contained in:
parent
da2156f955
commit
cfa0c13322
2 changed files with 29 additions and 0 deletions
|
@ -92,6 +92,8 @@ func (e *Element) Bool() bool {
|
|||
}
|
||||
}
|
||||
return false
|
||||
case *InteropItem:
|
||||
return t.value != nil
|
||||
default:
|
||||
panic("can't convert to bool: " + t.String())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue