mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-11-26 15:39:56 +00:00
fix: TypeScript strict typing and update @pezkuwi packages
- Fix Vec type casting in nominate, kick, and multisig operations - Update all @pezkuwi packages to latest stable versions (API 16.5.36, Common 14.0.25) - Regenerate logo SVG files
This commit is contained in:
1 parent
e12bef7e74
commit
7ac7bb3304
17 files changed
+343
-315
No files matched your search
@@ -177,20 +177,20 @@ async function wrapTx (api: ApiPromise, currentItem: QueueTx, { isMultiCall, mul
|
||||
? api.tx[multiModule].asMulti.meta.args.length === 5
|
||||
// We are doing toHex here since we have a Vec<u8> input
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
? api.tx[multiModule].asMulti(threshold, others, timepoint, tx.method.toHex(), weight)
|
||||
? api.tx[multiModule].asMulti(threshold, others as any, timepoint, tx.method.toHex(), weight)
|
||||
: api.tx[multiModule].asMulti.meta.args.length === 6
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
? api.tx[multiModule].asMulti(threshold, others, timepoint, tx.method.toHex(), false, weight)
|
||||
? api.tx[multiModule].asMulti(threshold, others as any, timepoint, tx.method.toHex(), false, weight)
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
: api.tx[multiModule].asMulti(threshold, others, timepoint, tx.method)
|
||||
: api.tx[multiModule].asMulti(threshold, others as any, timepoint, tx.method)
|
||||
: api.tx[multiModule].approveAsMulti.meta.args.length === 5
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
? api.tx[multiModule].approveAsMulti(threshold, others, timepoint, tx.method.hash, weight)
|
||||
? api.tx[multiModule].approveAsMulti(threshold, others as any, timepoint, tx.method.hash, weight)
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
: api.tx[multiModule].approveAsMulti(threshold, others, timepoint, tx.method.hash);
|
||||
: api.tx[multiModule].approveAsMulti(threshold, others as any, timepoint, tx.method.hash);
|
||||
}
|
||||
|
||||
return tx;
|
||||
|
||||
Reference in new issue
Block a user