diff --git a/src/contracts/election.sol b/src/contracts/election.sol index a1deb9f..57297f5 100644 --- a/src/contracts/election.sol +++ b/src/contracts/election.sol @@ -59,10 +59,10 @@ contract Election { function end() ownerOnly public { //announce each candidates results for(uint i=0; i < candidates.length; i++) { - ElectionResult(candidates[i].name, candidates[i].voteCount); + emit ElectionResult(candidates[i].name, candidates[i].voteCount); } //destroy the contract selfdestruct(owner); } -} \ No newline at end of file +}