Skip to content

Commit

Permalink
Changed election results type from Number to BigInt
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvelmer committed Sep 28, 2023
1 parent 79696e2 commit b6f7621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/js-client/src/internal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export function toNewProposal(
tally: SCProposal.tally, //number[][];
settings,
vochainMetadata: vochainProposal,
tallyVochain: vochainProposal.results.map((x) => x.map((y) => Number(y))),
tallyVochain: vochainProposal.results.map((x) => x.map((y) => BigInt(y))),
tallyVochainFinal: vochainProposal.finalResults,
} as GaslessVotingProposal;
}

0 comments on commit b6f7621

Please sign in to comment.