Calls

free

Get Current Batch Number

function currentBatchNumber() public view returns(uint);

Return value: the number of the current batch, specified by batchNumber.

Check if a Voter Committed in a Ballot

function didCommit(uint ballotID, address voter) public view returns(bool);

Return value: a boolean value indicating if the voter has committed for a given ballot.

Get Commit Hash

function getCommitHash(uint ballotID, address voter) public view returns(bytes32);

Gets the commit hash for a given voter and ballot.

  • reverts if voter has not committed yet.

Return value: the hash of the committed vote.

Last updated