Skip to content

Commit

Permalink
fix: update return type of proposal approver, grab address directly
Browse files Browse the repository at this point in the history
  • Loading branch information
thekidnamedkd committed Apr 3, 2024
1 parent e132db3 commit 2382d58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/client/src/multisig/internal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
};
Expand Down
4 changes: 2 additions & 2 deletions modules/client/src/multisig/internal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function toMultisigProposal(
),
status: computeProposalStatus(proposal),
approvals: proposal.approvers.map(
(approver) => approver.id.slice(0, 42),
(a) => a.approver.address,
),
};
}
Expand All @@ -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 => {
Expand Down

0 comments on commit 2382d58

Please sign in to comment.