Skip to content

Commit

Permalink
fix(fix bigint issue for github check): fix the check fail for github
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosma committed Jun 17, 2022
1 parent 87aeca6 commit a155105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ts/MaciState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class Poll {
)

const newStateLeaf = this.stateLeaves[Number(stateIndex)].copy()
newStateLeaf.voiceCreditBalance = BigInt(newStateLeaf.voiceCreditBalance) + BigInt(amount)
newStateLeaf.voiceCreditBalance = BigInt(newStateLeaf.voiceCreditBalance.valueOf()) + BigInt(amount)
this.stateLeaves[Number(stateIndex)] = newStateLeaf
this.stateTree.update(Number(stateIndex), newStateLeaf.hash())

Expand Down

0 comments on commit a155105

Please sign in to comment.