|
@@ -394,7 +394,7 @@ export const getActiveProposals = async (
|
|
|
): Promise<ProposalId[]> =>
|
|
|
api.query.proposalsEngine.activeProposalIds
|
|
|
.keys()
|
|
|
- .then((ids) => ids.map(([key]) => key as unknown as ProposalId));
|
|
|
+ .then((keys) => keys.map(({ args: [id] }) => id as ProposalId));
|
|
|
|
|
|
export const getProposalCount = async (
|
|
|
api: ApiPromise,
|