From e69a5962af0f4de9dba489f477f5bf890ed16b12 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:38:51 +0300 Subject: [PATCH 01/10] Update BordaNewBug2.sol --- lesson3_violations/Borda/bounty_specs/BordaNewBug2.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} From a61bfc251f26e2d90fc58392ffce7b5770ee4db5 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:39:01 +0300 Subject: [PATCH 02/10] Update BordaNewBug3.sol --- lesson3_violations/Borda/bounty_specs/BordaNewBug3.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} From 986ce909077dde4ef66b472b8f20e0a259dffda1 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:39:10 +0300 Subject: [PATCH 03/10] Update BordaNewBug4.sol --- lesson3_violations/Borda/bounty_specs/BordaNewBug4.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 7d5077a6f9dcd09e3b498ee302f5e7ac026d97d3 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:39:21 +0300 Subject: [PATCH 04/10] Update BordaNewBug5.sol --- lesson3_violations/Borda/bounty_specs/BordaNewBug5.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. From 7abb6e16c5a27a2437410ecd7e48a924826e6c24 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:39:38 +0300 Subject: [PATCH 05/10] Update Borda.sol --- lesson3_violations/Borda/Borda.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} From 5e9af1e781b7a5366204cc631d1f174d33355cfc Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:40:13 +0300 Subject: [PATCH 06/10] Update BordaBug1.sol --- lesson3_violations/Borda/BordaBug1.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} From db9b1c4247fab6cca13c4cfa9f5bcdb20c407409 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:40:24 +0300 Subject: [PATCH 07/10] Update BordaBug2.sol --- lesson3_violations/Borda/BordaBug2.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} From 88f659afababd21139941ce8d8a35c96d8c7690f Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:40:35 +0300 Subject: [PATCH 08/10] Update BordaBug3.sol --- lesson3_violations/Borda/BordaBug3.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} From 128b1c83b9981babb4fe656040f574c4fa94a1b0 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:40:44 +0300 Subject: [PATCH 09/10] Update BordaBug4.sol --- lesson3_violations/Borda/BordaBug4.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} From a26acc8bcc8727d7963aa4cf20a964b1c877693a Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:41:08 +0300 Subject: [PATCH 10/10] Update IBorda.sol --- lesson3_violations/Borda/IBorda.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}