mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-27 05:42:56 +00:00
vm: refactor ISNULL opcode handling
This commit is contained in:
parent
543fd58e93
commit
66ca654b07
1 changed files with 2 additions and 2 deletions
|
@ -531,8 +531,8 @@ func (v *VM) execute(ctx *Context, op opcode.Opcode, parameter []byte) (err erro
|
|||
v.estack.PushVal(stackitem.Null{})
|
||||
|
||||
case opcode.ISNULL:
|
||||
res := v.estack.Pop().value.Equals(stackitem.Null{})
|
||||
v.estack.PushVal(res)
|
||||
_, ok := v.estack.Pop().value.(stackitem.Null)
|
||||
v.estack.PushVal(ok)
|
||||
|
||||
case opcode.ISTYPE:
|
||||
res := v.estack.Pop().Item()
|
||||
|
|
Loading…
Reference in a new issue