core,vm: remove System.Enumerator.* interops

Map iterator now returns key-value pair, while array/byte-array
iterators work like old enumerators.
Follow neo-project/neo#2190.
This commit is contained in:
Evgeniy Stratonikov 2021-01-12 12:30:21 +03:00 committed by Roman Khimov
parent d04b000748
commit 2130e17f0c
16 changed files with 86 additions and 422 deletions

View file

@ -35,9 +35,8 @@ func Find(value []byte) []string {
iter := storage.Find(ctx, value)
result := []string{}
for iterator.Next(iter) {
val := iterator.Value(iter)
key := iterator.Key(iter)
result = append(result, key.(string)+":"+val.(string))
val := iterator.Value(iter).([]string)
result = append(result, val[0]+":"+val[1])
}
return result
}