policy: Fix compiler error #75

Merged
fyrchik merged 1 commit from fyrchik/frostfs-contract:fix-build into master 2024-01-30 13:42:28 +00:00

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 { func IteratorChainsByPrefix(entity Kind, entityName string, prefix []byte) iterator.Iterator {
ctx := storage.GetReadOnlyContext() 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) return storage.Find(ctx, keyPrefix, storage.ValuesOnly)
} }