Skip to content

Commit

Permalink
chore(deps): updated polkadot-js deps (#1067)
Browse files Browse the repository at this point in the history
* chore(deps): updated polkadot-js deps

* chore(deps) update polkadot-js deps

* chore(deps): update historyDepth promise call to return u32
remove repeated typecasts

* chore(deps): linting
  • Loading branch information
marshacb committed Sep 27, 2022
1 parent e2d6fae commit 1e09ae7
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 203 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -53,8 +53,8 @@
"update-pjs-deps": "substrate-update-pjs-deps && yarn"
},
"dependencies": {
"@polkadot/api": "^9.4.1",
"@polkadot/util-crypto": "^10.1.8",
"@polkadot/api": "^9.4.2",
"@polkadot/util-crypto": "^10.1.9",
"@substrate/calc": "^0.3.0",
"argparse": "^2.0.1",
"confmgr": "1.0.9",
Expand Down
4 changes: 2 additions & 2 deletions src/services/accounts/AccountsStakingPayoutsService.ts
Expand Up @@ -20,7 +20,7 @@ import {
DeriveEraExposure,
DeriveEraExposureNominating,
} from '@polkadot/api-derive/staking/types';
import { Option } from '@polkadot/types';
import { Option, u32 } from '@polkadot/types';
import {
BalanceOf,
BlockHash,
Expand Down Expand Up @@ -93,7 +93,7 @@ export class AccountsStakingPayoutsService extends AbstractService {

const [{ number }, historyDepth] = await Promise.all([
api.rpc.chain.getHeader(hash),
historicApi.query.staking.historyDepth(),
historicApi.query.staking.historyDepth<u32>(),
]);

// Information is kept for eras in `[current_era - history_depth; current_era]`
Expand Down

0 comments on commit 1e09ae7

Please sign in to comment.