[#75] policy: Fix compiler error

Refs #71

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-01-30 16:34:40 +03:00
parent e0f6fe3bc9
commit 6e72d0b3b4

View file

@ -211,6 +211,7 @@ func ListChainsByPrefix(entity Kind, entityName string, prefix []byte) [][]byte
func IteratorChainsByPrefix(entity Kind, entityName string, prefix []byte) iterator.Iterator {
ctx := storage.GetReadOnlyContext()
keyPrefix := storageKey(entity, entityName, prefix)
id, _ := mapToNumeric(ctx, []byte(entityName))
keyPrefix := storageKey(entity, id, prefix)
return storage.Find(ctx, keyPrefix, storage.ValuesOnly)
}