From 57021d4cda15aff32fae939c2a28f22cad4cf121 Mon Sep 17 00:00:00 2001 From: Isaac Kang Date: Fri, 13 Apr 2018 09:24:23 -0400 Subject: [PATCH] Add voter to Parameterizer --- contracts/Parameterizer.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/Parameterizer.sol b/contracts/Parameterizer.sol index f1e2aac9..672473e0 100644 --- a/contracts/Parameterizer.sol +++ b/contracts/Parameterizer.sol @@ -16,7 +16,7 @@ contract Parameterizer { event _ProposalExpired(bytes32 indexed propID); event _ChallengeSucceeded(bytes32 indexed propID, uint indexed challengeID, uint rewardPool, uint totalTokens); event _ChallengeFailed(bytes32 indexed propID, uint indexed challengeID, uint rewardPool, uint totalTokens); - event _RewardClaimed(uint indexed challengeID, uint reward); + event _RewardClaimed(uint indexed challengeID, uint reward, address indexed voter); // ------ @@ -258,7 +258,7 @@ contract Parameterizer { // ensures a voter cannot claim tokens again challenges[_challengeID].tokenClaims[msg.sender] = true; - _RewardClaimed(_challengeID, reward); + _RewardClaimed(_challengeID, reward, msg.sender); require(token.transfer(msg.sender, reward)); }