Skip to content

docs: fix spelling issues #34

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lesson3_violations/Borda/Borda.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract Borda is IBorda{
// A map storing whether an address has already voted. Initialized to false.
mapping (address => bool) _voted;

// Points each candidate has recieved, initialized to zero.
// Points each candidate has received, initialized to zero.
mapping (address => uint256) _points;

// current maximum points of all candidates.
Expand Down Expand Up @@ -45,4 +45,4 @@ contract Borda is IBorda{
function voted(address x) public view override returns(bool) {
return _voted[x];
}
}
}
4 changes: 2 additions & 2 deletions lesson3_violations/Borda/BordaBug1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract Borda is IBorda{
// A map storing whether an address has already voted. Initialized to false.
mapping (address => bool) _voted;

// Points each candidate has recieved, initialized to zero.
// Points each candidate has received, initialized to zero.
mapping (address => uint256) _points;

// current max points of all candidates.
Expand Down Expand Up @@ -45,4 +45,4 @@ contract Borda is IBorda{
function voted(address x) public view override returns(bool) {
return _voted[x];
}
}
}
4 changes: 2 additions & 2 deletions lesson3_violations/Borda/BordaBug2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract Borda is IBorda{
// A map storing whether an address has already voted. Initialized to false.
mapping (address => bool) _voted;

// Points each candidate has recieved, initialized to zero.
// Points each candidate has received, initialized to zero.
mapping (address => uint256) _points;

// current max points of all candidates.
Expand Down Expand Up @@ -53,4 +53,4 @@ contract Borda is IBorda{
function voted(address x) public view override returns(bool) {
return _voted[x];
}
}
}
4 changes: 2 additions & 2 deletions lesson3_violations/Borda/BordaBug3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract Borda is IBorda{
// A map storing whether an address has already voted. Initialized to false.
mapping (address => bool) _voted;

// Points each candidate has recieved, initialized to zero.
// Points each candidate has received, initialized to zero.
mapping (address => uint256) _points;

address private _blacklisted ;
Expand Down Expand Up @@ -51,4 +51,4 @@ contract Borda is IBorda{
function voted(address x) public view override returns(bool) {
return _voted[x];
}
}
}
4 changes: 2 additions & 2 deletions lesson3_violations/Borda/BordaBug4.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract Borda is IBorda{
// A map storing whether an address has already voted. Initialized to false.
mapping (address => bool) _voted;

// Points each candidate has recieved, initialized to zero.
// Points each candidate has received, initialized to zero.
mapping (address => uint256) _points;

// current max points of all candidates.
Expand Down Expand Up @@ -52,4 +52,4 @@ contract Borda is IBorda{
_winner = msg.sender;
}

}
}
4 changes: 2 additions & 2 deletions lesson3_violations/Borda/IBorda.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pragma solidity ^0.8.0;
*
* The election system follows the following rules:
*
* - Every user with an Etheruem address is allowed to vote in the election.
* - Every user with an Ethereum address is allowed to vote in the election.
* - A voter may vote to 3 distinct contenders at once.
* - The voter's 1st choice gets 3 points, their 2nd choice gets 2 points, and their 3rd
* choice gets 1 point.
Expand All @@ -27,4 +27,4 @@ interface IBorda {

// has user x voted?
function voted(address x) external view returns(bool);
}
}
4 changes: 2 additions & 2 deletions lesson3_violations/Borda/bounty_specs/BordaNewBug2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ contract Borda is IBorda {
// A map storing whether an address has already voted. Initialized to false.
mapping (address => bool) _voted;

// Points each candidate has recieved, initialized to zero.
// Points each candidate has received, initialized to zero.
mapping (address => uint256) _points;

// current maximum points of all candidates.
Expand Down Expand Up @@ -52,4 +52,4 @@ contract Borda is IBorda {
function voted(address x) public view override returns(bool) {
return _voted[x];
}
}
}
4 changes: 2 additions & 2 deletions lesson3_violations/Borda/bounty_specs/BordaNewBug3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ contract Borda is IBorda{
// A map storing whether an address has already voted. Initialized to false.
mapping (address => bool) _voted;

// Points each candidate has recieved, initialized to zero.
// Points each candidate has received, initialized to zero.
mapping (address => uint256) _points;

// current maximum points of all candidates.
Expand Down Expand Up @@ -52,4 +52,4 @@ contract Borda is IBorda{
function voted(address x) public view override returns(bool) {
return _voted[x];
}
}
}
2 changes: 1 addition & 1 deletion lesson3_violations/Borda/bounty_specs/BordaNewBug4.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ contract Borda is IBorda{
// A map storing whether an address has already voted. Initialized to false.
mapping (address => bool) _voted;

// Points each candidate has recieved, initialized to zero.
// Points each candidate has received, initialized to zero.
mapping (address => uint256) _points;

// current maximum points of all candidates.
Expand Down
2 changes: 1 addition & 1 deletion lesson3_violations/Borda/bounty_specs/BordaNewBug5.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ contract Borda is IBorda{
// A map storing whether an address has already voted. Initialized to false.
mapping (address => bool) _voted;

// Points each candidate has recieved, initialized to zero.
// Points each candidate has received, initialized to zero.
mapping (address => uint256) _points;

// current maximum points of all candidates.
Expand Down