Skip to content

Commit

Permalink
store decoded proposal ID as number
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Apr 18, 2024
1 parent 232e0bc commit 3e18855
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export type FormulaProposalObject = {
}

export type FormulaDecodedProposalObject = {
id: string
id: number
data: string
title: string
description: string
Expand Down
3 changes: 2 additions & 1 deletion src/data/formulas/generic/gov.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ export const decodedProposal: GenericFormula<

return (
proposal && {
...proposal,
id: Number(proposal.id),
data: proposal.data,
title,
description,
status,
Expand Down

0 comments on commit 3e18855

Please sign in to comment.