From 6faea13a282df073bae20e33dd24e98373de4d37 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 24 Sep 2020 09:48:28 +0200 Subject: [PATCH] Filter on null keys (wrong encoding) (#2642) --- packages/api-derive/src/staking/stashes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api-derive/src/staking/stashes.ts b/packages/api-derive/src/staking/stashes.ts index 509ff744d8..c861b8c42e 100644 --- a/packages/api-derive/src/staking/stashes.ts +++ b/packages/api-derive/src/staking/stashes.ts @@ -21,7 +21,7 @@ export function stashes (instanceId: string, api: ApiInterfaceRx): () => Observa map(([stashIds]) => stashIds) ) : api.query.staking.validators.keys().pipe( - map((keys) => keys.map((key) => key.args[0] as AccountId)) + map((keys) => keys.map((key) => key.args[0] as AccountId).filter((a) => a)) ) ); }