From 131729e4386edde1cfb9c0c10d7d26e2f64729f0 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sun, 20 Dec 2020 12:08:56 +0100 Subject: [PATCH] Adjust bountyBase for keys (#2968) --- packages/api-derive/src/bounties/bounties.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api-derive/src/bounties/bounties.ts b/packages/api-derive/src/bounties/bounties.ts index f7696c4d1a..ae2f6d1920 100644 --- a/packages/api-derive/src/bounties/bounties.ts +++ b/packages/api-derive/src/bounties/bounties.ts @@ -32,7 +32,7 @@ export function bounties (instanceId: string, api: ApiInterfaceRx): () => Observ return memo(instanceId, (): Observable => bountyBase.bountyCount().pipe( - switchMap(() => api.query.treasury.bounties.keys()), + switchMap(() => bountyBase.bounties.keys()), switchMap((keys): Observable => { const ids = keys.map(({ args: [id] }) => id);