Fix entries values decoding (#2011)

* Fix entries values decoding

* Linting

* Properly unwrap storage subs
This commit is contained in:
Jaco Greeff
2020-03-08 12:57:03 +01:00
committed by GitHub
parent 17f7e4b753
commit 9bf854445c
7 changed files with 209 additions and 56 deletions
@@ -21,7 +21,7 @@ function queryClipped (api: ApiInterfaceRx, withActive?: boolean): Observable<[E
// we could just do entries over the full set, however the set can be quite large - split it into
// batches - may need to re-visit this, or alternatively use pages keys for exceptionally large sets
allPoints.map(({ era }): Observable<[StorageKey, Exposure][]> =>
api.query.staking.erasStakersClipped.entries(era)
api.query.staking.erasStakers.entries(era)
)
)
])