Adjust codeHash lookups in useOwnedIds
This commit is contained in:
parent
f780d56bfb
commit
ab72a0de45
@ -43,8 +43,8 @@ function extractIds (entries: [StorageKey<[ParaId]>, Option<ParaInfo>][]): Owned
|
||||
}
|
||||
|
||||
const hashesOption = {
|
||||
transform: ([[keys], optHashes]: [[StorageKey<[ParaId]>[]], Option<Hash>[]]) =>
|
||||
keys.map(({ args: [paraId] }, index): CodeHash => ({
|
||||
transform: ([[paraIds], optHashes]: [[ParaId[]], Option<Hash>[]]) =>
|
||||
paraIds.map((paraId, index): CodeHash => ({
|
||||
hash: optHashes[index].unwrapOr(null),
|
||||
paraId
|
||||
})),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user