Skip to content

Commit

Permalink
Add comment explaining why we're casting the apparent BigInt into a B…
Browse files Browse the repository at this point in the history
…igInt
  • Loading branch information
adamgall committed Nov 6, 2024
1 parent ddcc6d9 commit be3f8dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/DAO/loaders/useFractalGovernance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export const useFractalGovernance = () => {
transactions: proposalTemplate.transactions.map(transaction => ({
...transaction,
ethValue: {
// bigintValue was serialized as a string, so we need to convert it back to a bigint
bigintValue: BigInt(transaction.ethValue.bigintValue || 0n),
value: transaction.ethValue.value ?? '0',
},
Expand Down

0 comments on commit be3f8dd

Please sign in to comment.