Skip to content

Commit 597c2cf

Browse files
authored
fix: Ranked Choice total voting power (#946)
* fix: Ranked Choice total voting power * v0.9.7
1 parent fbba43c commit 597c2cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@snapshot-labs/snapshot.js",
3-
"version": "0.9.6",
3+
"version": "0.9.7",
44
"repository": "snapshot-labs/snapshot.js",
55
"license": "MIT",
66
"main": "dist/snapshot.cjs.js",

src/voting/rankedChoice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export default class RankedChoiceVoting {
149149
}
150150

151151
getScoresTotal(): number {
152-
return getScoresMethod(this.votes, this.proposal).reduce((a, b) => a + b);
152+
return this.votes.reduce((a, b: any) => a + b.balance, 0);
153153
}
154154

155155
getChoiceString(): string {

0 commit comments

Comments
 (0)