diff --git a/lesson3_violations/Borda/Borda.sol b/lesson3_violations/Borda/Borda.sol index 7aee669..f9d5dd0 100644 --- a/lesson3_violations/Borda/Borda.sol +++ b/lesson3_violations/Borda/Borda.sol @@ -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. @@ -45,4 +45,4 @@ contract Borda is IBorda{ function voted(address x) public view override returns(bool) { return _voted[x]; } -} \ No newline at end of file +} diff --git a/lesson3_violations/Borda/BordaBug1.sol b/lesson3_violations/Borda/BordaBug1.sol index 2ed249d..1a0f6a8 100644 --- a/lesson3_violations/Borda/BordaBug1.sol +++ b/lesson3_violations/Borda/BordaBug1.sol @@ -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. @@ -45,4 +45,4 @@ contract Borda is IBorda{ function voted(address x) public view override returns(bool) { return _voted[x]; } -} \ No newline at end of file +} diff --git a/lesson3_violations/Borda/BordaBug2.sol b/lesson3_violations/Borda/BordaBug2.sol index 792065d..e7d6518 100644 --- a/lesson3_violations/Borda/BordaBug2.sol +++ b/lesson3_violations/Borda/BordaBug2.sol @@ -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. @@ -53,4 +53,4 @@ contract Borda is IBorda{ function voted(address x) public view override returns(bool) { return _voted[x]; } -} \ No newline at end of file +} diff --git a/lesson3_violations/Borda/BordaBug3.sol b/lesson3_violations/Borda/BordaBug3.sol index 49f3a84..fe919ac 100644 --- a/lesson3_violations/Borda/BordaBug3.sol +++ b/lesson3_violations/Borda/BordaBug3.sol @@ -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 ; @@ -51,4 +51,4 @@ contract Borda is IBorda{ function voted(address x) public view override returns(bool) { return _voted[x]; } -} \ No newline at end of file +} diff --git a/lesson3_violations/Borda/BordaBug4.sol b/lesson3_violations/Borda/BordaBug4.sol index 2dc1011..72b8b08 100644 --- a/lesson3_violations/Borda/BordaBug4.sol +++ b/lesson3_violations/Borda/BordaBug4.sol @@ -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. @@ -52,4 +52,4 @@ contract Borda is IBorda{ _winner = msg.sender; } -} \ No newline at end of file +} diff --git a/lesson3_violations/Borda/IBorda.sol b/lesson3_violations/Borda/IBorda.sol index 466b528..b750c32 100644 --- a/lesson3_violations/Borda/IBorda.sol +++ b/lesson3_violations/Borda/IBorda.sol @@ -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. @@ -27,4 +27,4 @@ interface IBorda { // has user x voted? function voted(address x) external view returns(bool); -} \ No newline at end of file +} diff --git a/lesson3_violations/Borda/bounty_specs/BordaNewBug2.sol b/lesson3_violations/Borda/bounty_specs/BordaNewBug2.sol index ea74e04..3c42317 100644 --- a/lesson3_violations/Borda/bounty_specs/BordaNewBug2.sol +++ b/lesson3_violations/Borda/bounty_specs/BordaNewBug2.sol @@ -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. @@ -52,4 +52,4 @@ contract Borda is IBorda { function voted(address x) public view override returns(bool) { return _voted[x]; } -} \ No newline at end of file +} diff --git a/lesson3_violations/Borda/bounty_specs/BordaNewBug3.sol b/lesson3_violations/Borda/bounty_specs/BordaNewBug3.sol index e81ac93..2cecf6b 100644 --- a/lesson3_violations/Borda/bounty_specs/BordaNewBug3.sol +++ b/lesson3_violations/Borda/bounty_specs/BordaNewBug3.sol @@ -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. @@ -52,4 +52,4 @@ contract Borda is IBorda{ function voted(address x) public view override returns(bool) { return _voted[x]; } -} \ No newline at end of file +} diff --git a/lesson3_violations/Borda/bounty_specs/BordaNewBug4.sol b/lesson3_violations/Borda/bounty_specs/BordaNewBug4.sol index ef5ddab..ec3887b 100644 --- a/lesson3_violations/Borda/bounty_specs/BordaNewBug4.sol +++ b/lesson3_violations/Borda/bounty_specs/BordaNewBug4.sol @@ -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. diff --git a/lesson3_violations/Borda/bounty_specs/BordaNewBug5.sol b/lesson3_violations/Borda/bounty_specs/BordaNewBug5.sol index 1bba35b..731d678 100644 --- a/lesson3_violations/Borda/bounty_specs/BordaNewBug5.sol +++ b/lesson3_violations/Borda/bounty_specs/BordaNewBug5.sol @@ -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.