From 2382d5878fe62cd8a294c52b4096308d0a3f30a6 Mon Sep 17 00:00:00 2001 From: KD Date: Wed, 3 Apr 2024 20:05:08 +0200 Subject: [PATCH] fix: update return type of proposal approver, grab address directly --- modules/client/src/multisig/internal/types.ts | 2 +- modules/client/src/multisig/internal/utils.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/client/src/multisig/internal/types.ts b/modules/client/src/multisig/internal/types.ts index a575d547d..b296127ef 100644 --- a/modules/client/src/multisig/internal/types.ts +++ b/modules/client/src/multisig/internal/types.ts @@ -4,7 +4,7 @@ export type SubgraphMultisigProposalBase = SubgraphProposalBase & { plugin: SubgraphMultisigVotingSettings; minApprovals: number; approvalReached: boolean; - approvers: { id: string }[]; + approvers: { id: string, approver: { address: string} }[]; // TODO change on subgraph fix // approvers: SubgraphMultisigApproversListItem[]; }; diff --git a/modules/client/src/multisig/internal/utils.ts b/modules/client/src/multisig/internal/utils.ts index 61f08e90f..9fc57483f 100644 --- a/modules/client/src/multisig/internal/utils.ts +++ b/modules/client/src/multisig/internal/utils.ts @@ -67,7 +67,7 @@ export function toMultisigProposal( ), status: computeProposalStatus(proposal), approvals: proposal.approvers.map( - (approver) => approver.id.slice(0, 42), + (a) => a.approver.address, ), }; } @@ -93,7 +93,7 @@ export function toMultisigProposalListItem( summary: metadata.summary, }, approvals: proposal.approvers.map( - (approver) => approver.id.slice(0, 42), + (a) => a.approver.address, ), actions: proposal.actions.map( (action: SubgraphAction): DaoAction => {