Skip to content

Commit

Permalink
added approval asterisk in DAO proposal ID
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Sep 25, 2024
1 parent b25a163 commit 2991923
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,13 @@ export const proposal: ContractFormula<
...(await intoResponse(env, proposal, idNum)),
...(proposalModule && {
proposalModule,
daoProposalId: `${proposalModule.prefix}${id}`,
daoProposalId: `${proposalModule.prefix}${
proposalModule.info?.contract.startsWith(
'crates.io:dao-pre-propose-approval-'
)
? '*'
: ''
}${id}`,
}),
...(daoAddress && {
dao: daoAddress,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,13 @@ export const proposal: ContractFormula<
...(await intoResponse(env, proposal, idNum, { v2 })),
...(proposalModule && {
proposalModule,
daoProposalId: `${proposalModule.prefix}${id}`,
daoProposalId: `${proposalModule.prefix}${
proposalModule.info?.contract.startsWith(
'crates.io:dao-pre-propose-approval-'
)
? '*'
: ''
}${id}`,
}),
...(daoAddress && {
dao: daoAddress,
Expand Down

0 comments on commit 2991923

Please sign in to comment.