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

Upgrade polkadot-js/common and polkadot-js/api to 13.1.1 #562

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Cleanup nits
  • Loading branch information
TarikGul committed Sep 18, 2024
commit 87e814de09cc175ccc32c91da350bf296486edac
6 changes: 3 additions & 3 deletions packages/api-cli/src/runcli.ts
Original file line number Diff line number Diff line change
@@ -252,13 +252,13 @@ async function makeTx ({ api, fn, log }: CallInfo): Promise<(() => void) | Hash>
let signable;

if (sudo || sudoUncheckedWeight) {
const adminId = await api.query.sudo.key();
const adminId = await api.query['sudo']['key']();

assert(adminId.eq(signer.address), 'Supplied seed does not match on-chain sudo key');

signable = sudoUncheckedWeight
? api.tx.sudo.sudoUncheckedWeight(fn(...params), sudoUncheckedWeight)
: api.tx.sudo.sudo(fn(...params));
? api.tx['sudo']['sudoUncheckedWeight'](fn(...params), sudoUncheckedWeight)
: api.tx['sudo']['sudo'](fn(...params));
} else {
signable = fn(...params);
}
2 changes: 1 addition & 1 deletion packages/json-serve/src/runcli.ts
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@ async function main (): Promise<void> {
tokenDecimals = chainProperties.tokenDecimals.unwrapOr([new BN(12)])[0].toNumber();

await api.rpc.chain.subscribeNewHeads(onNewHead);
await api.query.balances.totalIssuance(onTotalInsurance);
await api.query['balances']['totalIssuance'](onTotalInsurance);
await api.derive.staking.electedInfo(undefined, undefined, onElectedInfo);
}