You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer the following questions for yourself before submitting an issue.
I am not running a deprecated version
I checked the documentation and found no answer
I checked to make sure that this issue has not already been filed
Expected Behavior
Please describe the behavior you are expecting
The condition to check if all ballots were tallied should be batchStartIndex >= numSignUps to account for the numSignUps === tallyBatchSize case.
For example, if tallyBatchSize = 25, and numSignUps = 25, the function will not emit the BallotsTallied event because (cachedBatchNum + 1) * tallyBatchSize = 25 which is not greater than 25.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
Please describe the behavior you are expecting
The condition to check if all ballots were tallied should be
batchStartIndex >= numSignUps
to account for thenumSignUps === tallyBatchSize
case.For example, if tallyBatchSize = 25, and numSignUps = 25, the function will not emit the
BallotsTallied
event because (cachedBatchNum + 1) * tallyBatchSize = 25 which is not greater than 25.https://github.com/privacy-scaling-explorations/maci/blob/dev/contracts/contracts/Tally.sol#L138-L140
https://github.com/privacy-scaling-explorations/maci/blob/dev/contracts/contracts/Tally.sol#L151-L153
Current Behavior
What is the current behavior?
Failure Information
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs
Please include any relevant log snippets or files here.
The text was updated successfully, but these errors were encountered: