Support new map nextKeys in derives (#2021)

* Support new map nextKeys in derives

* Update packages/api-derive/src/staking/query.ts
This commit is contained in:
Jaco Greeff
2020-03-10 15:07:02 +01:00
committed by GitHub
parent f1cbfff5a6
commit d818f61dc8
+3 -1
View File
@@ -46,7 +46,9 @@ function retrieveCurr (api: ApiInterfaceRx, stashId: AccountId): Observable<Mult
[api.query.staking.nominators, stashId],
[api.query.staking.payee, stashId],
[api.query.staking.validators, stashId],
[api.query.session.nextKeys, [api.consts.session.dedupKeyPrefix, stashId]],
api.consts.session.dedupKeyPrefix
? [api.query.session.nextKeys, [api.consts.session.dedupKeyPrefix, stashId]]
: [api.query.session.nextKeys, stashId],
[api.query.staking.erasStakers, [activeEra, stashId]]
])
)