vm: adjust stale comment

This commit is contained in:
Anna Shaleva 2022-12-07 17:30:02 +03:00
parent 82221b0ca7
commit 2d6db6f5c4

View file

@ -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