Skip to content

Commit

Permalink
fix: undefined error reading totalSpentVoiceCredits
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Dec 8, 2023
1 parent 6427f37 commit 10e46af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/ts/commands/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ export const verify = async (

// verify total spent voice credits on-chain
const isValid = await tallyContract.verifySpentVoiceCredits(
tallyData.totalSpentVoiceCredits.spent,
tallyData.totalSpentVoiceCredits.salt,
tallyResults.totalSpentVoiceCredits.spent,
tallyResults.totalSpentVoiceCredits.salt,
newResultsCommitment,
newPerVOSpentVoiceCreditsCommitment,
);
Expand All @@ -134,7 +134,7 @@ export const verify = async (
// verify per vote option voice credits on-chain
const failedSpentCredits = await verifyPerVOSpentVoiceCredits(
tallyContract,
tallyData,
tallyResults,
voteOptionTreeDepth,
newSpentVoiceCreditsCommitment,
newResultsCommitment,
Expand All @@ -148,7 +148,7 @@ export const verify = async (
// verify tally result on-chain for each vote option
const failedTallyResults = await verifyTallyResults(
tallyContract,
tallyData,
tallyResults,
voteOptionTreeDepth,
newSpentVoiceCreditsCommitment,
newPerVOSpentVoiceCreditsCommitment,
Expand Down

0 comments on commit 10e46af

Please sign in to comment.