vm: adjust stale comment
This commit is contained in:
parent
82221b0ca7
commit
2d6db6f5c4
1 changed files with 1 additions and 1 deletions
|
@ -1351,7 +1351,7 @@ func (v *VM) execute(ctx *Context, op opcode.Opcode, parameter []byte) (err erro
|
||||||
v.refs.Remove(toRemove)
|
v.refs.Remove(toRemove)
|
||||||
case *stackitem.Map:
|
case *stackitem.Map:
|
||||||
index := t.Index(key.Item())
|
index := t.Index(key.Item())
|
||||||
// Neo 2.0 doesn't error on missing key.
|
// No error on missing key.
|
||||||
if index >= 0 {
|
if index >= 0 {
|
||||||
elems := t.Value().([]stackitem.MapElement)
|
elems := t.Value().([]stackitem.MapElement)
|
||||||
key := elems[index].Key
|
key := elems[index].Key
|
||||||
|
|
Loading…
Reference in a new issue