Skip to content

Commit

Permalink
fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed May 7, 2024
1 parent 914d706 commit 41b716e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hardhat/contracts/maci-contracts/MACIWrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ contract MACIWrapper is MACI {
bool _ascending
) public view returns (PollData[] memory polls_) {
uint256 start = (_page - 1) * _perPage;
uint256 end = start + _perPage;
uint256 end = start + _perPage - 1;

if (start >= nextPollId) {
return new PollData[](0);
Expand Down

0 comments on commit 41b716e

Please sign in to comment.