Merge pull request #2787 from designium/patch-1

Adding storage into the pointer for Voter delegate
This commit is contained in:
chriseth 2017-08-24 10:43:32 +02:00 committed by GitHub
commit 9c74473a9b

View File

@ -126,7 +126,7 @@ of votes.
// modifies `voters[msg.sender].voted`
sender.voted = true;
sender.delegate = to;
Voter delegate = voters[to];
Voter storage delegate = voters[to];
if (delegate.voted) {
// If the delegate already voted,
// directly add to the number of votes