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[]);