Bump metadata (#2148)

* Bump metadata

* Adjust to non-customized democracy params
This commit is contained in:
Jaco Greeff
2020-04-09 14:46:48 +02:00
committed by GitHub
parent 83a762af1e
commit 9184268c3d
8 changed files with 178 additions and 38 deletions
@@ -99,7 +99,9 @@ function filterRewards (api: ApiInterfaceRx, accountId: Uint8Array | string, rew
? api.query.staking.migrateEra<Option<EraIndex>>()
: of(api.registry.createType('Option<EraIndex>', api.tx.staking.payoutStakers ? 0 : 1_000_000_000)),
api.derive.staking.query(accountId),
api.derive.staking.queryMulti(validators)
api.tx.staking.payoutStakers
? api.derive.staking.queryMulti(validators)
: of([])
]).pipe(
map(([optMigrate, { stakingLedger }, queryValidators]): DeriveStakerReward[] => {
const migrateEra = optMigrate.unwrapOr(new BN(-1));