diff --git a/pkg/core/interop_system.go b/pkg/core/interop_system.go index 94b9b4eee..3a6facde2 100644 --- a/pkg/core/interop_system.go +++ b/pkg/core/interop_system.go @@ -189,8 +189,6 @@ func storageFind(ic *interop.Context) error { if opts&istorage.FindDeserialize == 0 && (opts&istorage.FindPick0 != 0 || opts&istorage.FindPick1 != 0) { return fmt.Errorf("%w: PickN is specified without Deserialize", errFindInvalidOptions) } - // Items in seekres should be sorted by key, but GetStorageItemsWithPrefix returns - // sorted items, so no need to sort them one more time. ctx, cancel := context.WithCancel(context.Background()) seekres := ic.DAO.SeekAsync(ctx, stc.ID, storage.SeekRange{Prefix: prefix}) item := istorage.NewIterator(seekres, prefix, opts)