Bugfix for example contract

Discovered by @alexvandesande
pull/1/head
chriseth 9 years ago
parent dfa78c2abf
commit 19dfca87fe
  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