From edb0a40843bf815bf7f39bfbaa7653a7a7425be8 Mon Sep 17 00:00:00 2001 From: Jaco Date: Sat, 6 Aug 2022 13:52:28 +0200 Subject: [PATCH] Adjust to KitchensinkRuntimeSessionKeys in derive (#5138) --- packages/api-derive/src/staking/keys.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api-derive/src/staking/keys.ts b/packages/api-derive/src/staking/keys.ts index 19d2d76b79..552dbfd9ab 100644 --- a/packages/api-derive/src/staking/keys.ts +++ b/packages/api-derive/src/staking/keys.ts @@ -4,7 +4,7 @@ import type { Observable } from 'rxjs'; import type { Option } from '@polkadot/types'; import type { AccountId } from '@polkadot/types/interfaces'; -import type { NodeRuntimeSessionKeys } from '@polkadot/types/lookup'; +import type { KitchensinkRuntimeSessionKeys } from '@polkadot/types/lookup'; import type { DeriveApi } from '../types'; import type { DeriveStakingKeys } from './types'; @@ -12,7 +12,7 @@ import { combineLatest, map, of, switchMap } from 'rxjs'; import { firstMemo, memo } from '../util'; -function extractsIds (stashId: Uint8Array | string, queuedKeys: [AccountId, NodeRuntimeSessionKeys | AccountId[]][], nextKeys: Option): DeriveStakingKeys { +function extractsIds (stashId: Uint8Array | string, queuedKeys: [AccountId, KitchensinkRuntimeSessionKeys | AccountId[]][], nextKeys: Option): DeriveStakingKeys { const sessionIds = (queuedKeys.find(([currentId]) => currentId.eq(stashId)) || [undefined, [] as AccountId[]])[1]; const nextSessionIds = nextKeys.unwrapOr([] as AccountId[]);