Improve wording on voting example

From a beginner perspective, it is the first time in the documentation
that the term wallets is used. Other terms such as accounts or addresses
are explained in the Introduction to smart contracts.
This commit is contained in:
Florian Sey 2022-05-06 01:01:33 +02:00
parent 1dba6aafe4
commit c7d57031b5

View File

@ -133,7 +133,7 @@ of votes.
// modifies `voters[msg.sender].voted` // modifies `voters[msg.sender].voted`
Voter storage delegate_ = voters[to]; 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); require(delegate_.weight >= 1);
sender.voted = true; sender.voted = true;
sender.delegate = to; sender.delegate = to;