mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
style
This commit is contained in:
parent
f9c8a9b5ca
commit
ed9cc5476e
@ -112,9 +112,11 @@ of votes.
|
||||
// In this case, the delegation will not be executed,
|
||||
// but in other situations, such loops might
|
||||
// cause a contract to get "stuck" completely.
|
||||
while (voters[to].delegate != address(0) &&
|
||||
voters[to].delegate != msg.sender) {
|
||||
to = voters[to].delegate;
|
||||
while (
|
||||
voters[to].delegate != address(0) &&
|
||||
voters[to].delegate != msg.sender
|
||||
) {
|
||||
to = voters[to].delegate;
|
||||
}
|
||||
|
||||
// We found a loop in the delegation, not allowed.
|
||||
|
Loading…
Reference in New Issue
Block a user