Skip to content

Commit

Permalink
feat(contracts): made nextPollId public to support third-party apps…
Browse files Browse the repository at this point in the history
… more easily

Changed visibility of `nextPollId` to allow easier integration in third party apps. Also removed
redundant variable initializations

#fix 557
  • Loading branch information
ctrlc03 authored and baumstern committed Dec 2, 2022
1 parent aa4ba27 commit c5c6bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/contracts/MACI.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ contract MACI is IMACI, DomainObjs, Params, SnarkCommon, Ownable {
);

// Each poll has an incrementing ID
uint256 internal nextPollId = 0;
uint256 public nextPollId;

// A mapping of poll IDs to Poll contracts.
mapping(uint256 => Poll) public polls;
Expand Down Expand Up @@ -69,7 +69,7 @@ contract MACI is IMACI, DomainObjs, Params, SnarkCommon, Ownable {
AccQueue public override stateAq;

// Whether the init() function has been successfully executed yet.
bool public isInitialised = false;
bool public isInitialised;

// Address of the SignUpGatekeeper, a contract which determines whether a
// user may sign up to vote
Expand Down

0 comments on commit c5c6bdb

Please sign in to comment.