policy: Fix compiler error #75
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue