Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Missing runtime APIs for Metadata v15 #2204

Merged
merged 11 commits into from
Oct 30, 2024
5 changes: 4 additions & 1 deletion e2e/capacity/capacity_rpc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ describe('Capacity RPC', function () {
// Actual weights and fee
const {
weight: { refTime, proofSize },
} = await ExtrinsicHelper.apiPromise.call.transactionPaymentApi.queryInfo(call.toHex(), 0);
} = await ExtrinsicHelper.apiPromise.call.transactionPaymentApi.queryInfo(call.toU8a(), call.length);
// Why does it need to be call.toU8a() above instead of just call or call.toHex()?
// https://github.com/polkadot-js/apps/issues/10994

const weightFee = await ExtrinsicHelper.apiPromise.call.transactionPaymentApi.queryWeightToFee({
refTime,
proofSize,
Expand Down
696 changes: 347 additions & 349 deletions e2e/package-lock.json

Large diffs are not rendered by default.

17 changes: 8 additions & 9 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"@frequency-chain/api-augment": "file:../js/api-augment/dist/frequency-chain-api-augment-0.0.0.tgz",
"@helia/unixfs": "^4.0.0",
"@noble/curves": "^1.6.0",
"@polkadot-api/merkleize-metadata": "^1.1.7",
"@polkadot/api": "14.1.1",
"@polkadot/types": "14.1.1",
"@polkadot/util": "13.2.1",
"helia": "^5.0.1",
"@polkadot-api/merkleize-metadata": "^1.1.9",
"@polkadot/api": "14.2.1",
"@polkadot/types": "14.2.1",
"@polkadot/util": "13.2.2",
"helia": "^5.1.0",
"multiformats": "^13.3.0",
"rxjs": "^7.8.1",
"workerpool": "^9.2.0"
Expand All @@ -37,12 +37,11 @@
"eslint": "^9.13.0",
"eslint-plugin-mocha": "^10.5.0",
"globals": "^15.11.0",
"mocha": "^10.7.3",
"node-datachannel": "^0.12.0",
"mocha": "^10.8.0",
"prettier": "^3.3.3",
"sinon": "^19.0.2",
"tsx": "^4.19.1",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.10.0"
"typescript-eslint": "^8.12.2"
}
}
Loading
Loading