Panvala
Search…
Calls
free

Get Current Batch Number

1
function currentBatchNumber() public view returns(uint);
Copied!
Return value: the number of the current batch, specified by batchNumber.

Check if a Voter Committed in a Ballot

1
function didCommit(uint ballotID, address voter) public view returns(bool);
Copied!
Return value: a boolean value indicating if the voter has committed for a given ballot.

Get Commit Hash

1
function getCommitHash(uint ballotID, address voter) public view returns(bytes32);
Copied!
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 modified 2yr ago