Merge pull request #12985 from sey/improve-wording-on-voting-example

Improve wording on voting example
This commit is contained in:
chriseth 2022-05-09 09:35:49 +02:00 committed by GitHub
commit 44157aa69a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ of votes.
// modifies `voters[msg.sender].voted`
Voter storage delegate_ = voters[to];
// Voters cannot delegate to wallets that cannot vote.
// Voters cannot delegate to accounts that cannot vote.
require(delegate_.weight >= 1);
sender.voted = true;
sender.delegate = to;