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

Ensure resolutions are correct for pjs/common and pjs/api #565

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"@types/yargs": "^17.0.32"
},
"resolutions": {
"@polkadot/api": "^12.4.1",
"@polkadot/api-derive": "^12.4.1",
"@polkadot/keyring": "^13.0.2",
"@polkadot/types": "^12.4.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"@polkadot/api": "^13.1.1",
"@polkadot/api-derive": "^13.1.1",
"@polkadot/keyring": "^13.1.1",
"@polkadot/types": "^13.1.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"typescript": "^5.5.4"
}
}
6 changes: 3 additions & 3 deletions packages/api-cli/src/runcli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/json-serve/src/runcli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Loading
Loading