Merge pull request #74 from chriseth/bugfixproposals

Bugfix for example contract
pull/1/head
chriseth 9 years ago
commit 60b9c5a8b3
  1. 4
      assets/js/ballot.sol.js

@ -81,13 +81,11 @@ var BALLOT_EXAMPLE = multi(function(){/*contract Ballot {
function winningProposal() constant returns (uint8 winningProposal) {
uint256 winningVoteCount = 0;
for (uint8 proposal = 0; proposal < proposals.length; proposal++) {
for (uint8 proposal = 0; proposal < proposals.length; proposal++)
if (proposals[proposal].voteCount > winningVoteCount) {
winningVoteCount = proposals[proposal].voteCount;
winningProposal = proposal;
}
++proposal;
}
}
}
*/});

Loading…
Cancel
Save