Skip to content

Commit

Permalink
voting chain mutant 7
Browse files Browse the repository at this point in the history
  • Loading branch information
nisnislevi committed Nov 16, 2023
1 parent 596d17d commit cff392b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions security/certora/tests/REPORT-voting.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
voting_and_tally.spec
=====================

Questions/Comments:
------------------
1. In most of the confs we have loop_iter==1. Is it correct ?
2. When running the tests:
- power_summary.conf has several failures (including sanity fails)
- misc.conf has several failures and timeouts
- proposal_states.conf has one sanity failure.
3. I checked the mutants against:
- legality.conf
- proposal_config.conf
- proposal_states.conf
- voting_and_tally.conf


Mutations:
---------
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/voting/VotingMachineWithProofs.sol
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ abstract contract VotingMachineWithProofs is
address user,
uint256 proposalId
) external view returns (Vote memory) {
return _proposals[proposalId].votes[user];
return _proposals[proposalId+1].votes[user];
}

/// @inheritdoc IVotingMachineWithProofs
Expand Down

0 comments on commit cff392b

Please sign in to comment.