Skip to content
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

Fixed a few issues with the files in contracts folder #12

Open
wants to merge 3 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
6 changes: 3 additions & 3 deletions contracts/Election.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity 0.4.20;
pragma solidity 0.4.24;

contract Election {
// Model a Candidate
Expand All @@ -21,7 +21,7 @@ contract Election {
uint indexed _candidateId
);

function Election () public {
constructor() public {
addCandidate("Candidate 1");
addCandidate("Candidate 2");
}
Expand All @@ -45,6 +45,6 @@ contract Election {
candidates[_candidateId].voteCount ++;

// trigger voted event
votedEvent(_candidateId);
emit votedEvent(_candidateId);
}
}
2 changes: 1 addition & 1 deletion contracts/Migrations.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ contract Migrations {
if (msg.sender == owner) _;
}

function Migrations() {
constructor() {
owner = msg.sender;
}

Expand Down