mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixes for failing tests
This commit is contained in:
@@ -158,9 +158,9 @@ of votes.
|
||||
returns (uint winningProposal)
|
||||
{
|
||||
uint winningVoteCount = 0;
|
||||
for (uint p = 0; p < winningProposals.length; p++) {
|
||||
if (winningProposals[p].voteCount > winningVoteCount) {
|
||||
winningVoteCount = winningProposals[p].voteCount;
|
||||
for (uint p = 0; p < proposals.length; p++) {
|
||||
if (proposals[p].voteCount > winningVoteCount) {
|
||||
winningVoteCount = proposals[p].voteCount;
|
||||
winningProposal = p;
|
||||
}
|
||||
}
|
||||
@@ -172,7 +172,7 @@ of votes.
|
||||
function winnerName() public view
|
||||
returns (bytes32 winnerName)
|
||||
{
|
||||
name = proposals[winningProposal()].name;
|
||||
winnerName = proposals[winningProposal()].name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user