mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2787 from designium/patch-1
Adding storage into the pointer for Voter delegate
This commit is contained in:
commit
9c74473a9b
@ -126,7 +126,7 @@ of votes.
|
|||||||
// modifies `voters[msg.sender].voted`
|
// modifies `voters[msg.sender].voted`
|
||||||
sender.voted = true;
|
sender.voted = true;
|
||||||
sender.delegate = to;
|
sender.delegate = to;
|
||||||
Voter delegate = voters[to];
|
Voter storage delegate = voters[to];
|
||||||
if (delegate.voted) {
|
if (delegate.voted) {
|
||||||
// If the delegate already voted,
|
// If the delegate already voted,
|
||||||
// directly add to the number of votes
|
// directly add to the number of votes
|
||||||
|
Loading…
Reference in New Issue
Block a user