Skip to content

Commit

Permalink
Add function to get proposal count
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqiushi committed Aug 1, 2024
1 parent bc788c4 commit 8875d58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/proposal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,8 @@ contract ProposalContract is Initializable, UUPSUpgradeable, ReentrancyGuardUpgr
}
return votes;
}

function getProposalCount() view public returns (uint256) {
return curProposalId;
}
}

0 comments on commit 8875d58

Please sign in to comment.