Last active
April 8, 2019 15:00
-
-
Save Maxcutex/f385c8b6a94d41983b11d6713c779abc to your computer and use it in GitHub Desktop.
Election Project - Initialize oonstructor with function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract Election { | |
// ... | |
constructor () public { | |
addCandidate("Candidate 1"); | |
addCandidate("Candidate 2"); | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment