Skip to content

Commit

Permalink
fix(deps): update pjs common, api, wasm-crypto (#895)
Browse files Browse the repository at this point in the history
* fix: update polkadotjs common, api, and wasm-crypto

* fix: transactionByeFee typecast to Balance

* lint

* update resolutions to solve build issue

* fix: update apps-config

* fix: update pjs api 8.0.2
  • Loading branch information
TarikGul committed Apr 13, 2022
1 parent eece110 commit c09a869
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 287 deletions.
36 changes: 25 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"test:test-release": "yarn start:test-release"
},
"dependencies": {
"@polkadot/api": "^7.15.1",
"@polkadot/apps-config": "^0.111.1",
"@polkadot/util-crypto": "^8.7.1",
"@polkadot/api": "^8.0.2",
"@polkadot/apps-config": "^0.112.1",
"@polkadot/util-crypto": "^9.0.1",
"@substrate/calc": "^0.2.8",
"argparse": "^2.0.1",
"confmgr": "1.0.7",
Expand All @@ -78,14 +78,28 @@
"tsc-watch": "^4.4.0"
},
"resolutions": {
"@polkadot/api": "7.15.1",
"@polkadot/keyring": "8.7.1",
"@polkadot/networks": "8.7.1",
"@polkadot/types": "7.15.1",
"@polkadot/types-known": "7.15.1",
"@polkadot/util": "8.7.1",
"@polkadot/util-crypto": "8.7.1",
"@polkadot/wasm-crypto": "5.1.1",
"@polkadot/api": "8.0.2",
"@polkadot/api-augment": "8.0.2",
"@polkadot/api-base": "8.0.2",
"@polkadot/api-derive": "8.0.2",
"@polkadot/rpc-core": "8.0.2",
"@polkadot/rpc-augment": "8.0.2",
"@polkadot/rpc-provider": "8.0.2",
"@polkadot/types": "8.0.2",
"@polkadot/types-augment": "8.0.2",
"@polkadot/types-codec": "8.0.2",
"@polkadot/types-create": "8.0.2",
"@polkadot/types-support": "8.0.2",
"@polkadot/types-known": "8.0.2",
"@polkadot/keyring": "9.0.1",
"@polkadot/networks": "9.0.1",
"@polkadot/util": "9.0.1",
"@polkadot/util-crypto": "9.0.1",
"@polkadot/x-fetch": "9.0.1",
"@polkadot/x-global": "9.0.1",
"@polkadot/x-bigint": "9.0.1",
"@polkadot/x-ws": "9.0.1",
"@polkadot/wasm-crypto": "6.0.1",
"bn.js": "5.2.0",
"node-fetch": "2.6.7",
"prismjs": ">=1.23.0",
Expand Down
4 changes: 3 additions & 1 deletion src/services/blocks/BlocksService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { extractAuthor } from '@polkadot/api-derive/type/util';
import { Compact, GenericCall, Struct, Vec } from '@polkadot/types';
import {
AccountId32,
Balance,
Block,
BlockHash,
BlockNumber,
Expand Down Expand Up @@ -505,7 +506,8 @@ export class BlocksService extends AbstractService {
const multiplier =
await api.query.transactionPayment?.nextFeeMultiplier?.at(parentHash);

const perByte = historicApi.consts.transactionPayment?.transactionByteFee;
const perByte = historicApi.consts.transactionPayment
?.transactionByteFee as Balance;
const extrinsicBaseWeightExists =
historicApi.consts.system.extrinsicBaseWeight ||
historicApi.consts.system.blockWeights.perClass.normal.baseExtrinsic;
Expand Down
Loading

0 comments on commit c09a869

Please sign in to comment.