Skip to content

Commit 0418ec6

Browse files
authored
feat: print skipped vote account (#2753)
* feat: do it * precommit
1 parent 9867275 commit 0418ec6

File tree

1 file changed

+10
-1
lines changed
  • governance/xc_admin/packages/xc_admin_cli/src

1 file changed

+10
-1
lines changed

governance/xc_admin/packages/xc_admin_cli/src/index.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,16 @@ multisigCommand(
419419
),
420420
),
421421
)
422-
).flat();
422+
)
423+
.map((stakeAccounts, index) => {
424+
if (stakeAccounts.length === 0) {
425+
console.log(
426+
`Skipping vote account ${voteAccounts[index].toBase58()} - no stake accounts found`,
427+
);
428+
}
429+
return stakeAccounts;
430+
})
431+
.flat();
423432

424433
const instructions = stakeAccounts.flatMap(
425434
(stakeAccount) =>

0 commit comments

Comments
 (0)