Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Sacharbon authored Oct 1, 2024
1 parent 4ea8e30 commit 7329cbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/7.Voting-system/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Crucial step! I'll leave you to code the rest of the contract yourself, so you c
- Create a structure `Voter` containing a boolean named `voted` and an uint `id`.
- Code the `vote` function. It should take the id of the proposal in parameter.
- Check if the voter had already voted and if the id is correct.
> 💡 If the voter had already voted, return the string 'Already Voted.'
- Add a `voteCount` for the proposal.

> 💡 These functions require a wallet address. If you've did the previous step correctly, you have account available to use. Put one of the private keys in the `.env` file.
Expand Down

0 comments on commit 7329cbf

Please sign in to comment.