mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-06-14 15:41:04 +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:
@@ -42,7 +42,7 @@ function KickNominees ({ className = '', controllerId, nominating, onClose, stas
|
||||
try {
|
||||
setTx({
|
||||
kickTx: selected.length
|
||||
? api.tx.staking.kick(selected)
|
||||
? api.tx.staking.kick(selected as any)
|
||||
: null
|
||||
});
|
||||
} catch {
|
||||
|
||||
@@ -50,8 +50,8 @@ function Nominate ({ className = '', controllerId, nominating, onChange, poolId,
|
||||
onChange({
|
||||
nominateTx: selected?.length
|
||||
? poolId
|
||||
? api.tx.nominationPools.nominate(poolId, selected)
|
||||
: api.tx.staking.nominate(selected)
|
||||
? api.tx.nominationPools.nominate(poolId, selected as any)
|
||||
: api.tx.staking.nominate(selected as any)
|
||||
: null
|
||||
});
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user