From 70fe897e05155183a3dd4051f308da3790601c26 Mon Sep 17 00:00:00 2001 From: Ksenia <4aika_ksyu@mail.ru> Date: Fri, 30 Mar 2018 17:48:58 +0700 Subject: [PATCH] Update election.sol Seems there needs "emit" prefix before invoking the event. --- src/contracts/election.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}