-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Voting system workshop #102
Conversation
|
||
### 📌 **Tasks**: | ||
|
||
Remove the files from `script/`, `src/` and `test` directories. Create `VotingSystem.sol` in the `src/` folder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explique plus. Dit qu'il faut créer un contrat nommer VotingSystem
et qu'il faut mettre le header du fichier
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.26;
- Create a structure named `Proposal` | ||
>💡 The structure should have 2 variables, `name` and `voteCount`. I let you guess their types. | ||
|
||
- On deployment, the contract should take an array of strings as parameters and store them in a `public` array of `Proposals`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explique que c'est un constructeur ce qu'il doivent faire et qu'il prend en param un array de string (c'est moins ambigu)
p2p/7.Voting-system/README.md
Outdated
- Using Anvil and forge, deploy your smart contract on a local testnet. | ||
- Paste the address of your deployed contract into the environment file at the root of the dApp folder named `VITE_ADDRESS`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explique qu'il faut démarrer anvil et après deployer le contrat. l'address du contrat deployer apparait sous le nom deployed to
p2p/7.Voting-system/README.md
Outdated
|
||
### 📌 **Tasks**: | ||
|
||
- Create a structure `Voter` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
precise ce que dois contenir la structure (on peux pas le deviner) et du coup sa permet de comprendre a quoi correspond l'id que tu demande en dessous
h1 { | ||
font-size: 3rem; | ||
font-weight: bold; | ||
} | ||
h2 { | ||
font-size: 1.8rem; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fait gaffe a la couleur du text. pour moi la couleur des nom des proposals sont noir sur un fond gris donc on voit rien
Description
Add the new voting system workshop
Changes include
add README, setup, util & dApp folder.
Checklist