Adjust bountyBase for keys (#2968)

This commit is contained in:
Jaco Greeff
2020-12-20 12:08:56 +01:00
committed by GitHub
parent 4672439bce
commit 131729e438
+1 -1
View File
@@ -32,7 +32,7 @@ export function bounties (instanceId: string, api: ApiInterfaceRx): () => Observ
return memo(instanceId, (): Observable<DeriveBounties> =>
bountyBase.bountyCount<BountyIndex>().pipe(
switchMap(() => api.query.treasury.bounties.keys()),
switchMap(() => bountyBase.bounties.keys()),
switchMap((keys): Observable<Result> => {
const ids = keys.map(({ args: [id] }) => id);