GitHub repository: nethatix/Ethereum-Voting-Contract
Primary language: JavaScript
Created: 2019-06-06T16:53:00Z
Description: An ethereum solidity voting contract with 3 fixed options to choose from: 0 or 1 or 2. The votes can come only from the addresses that are marked as "verified". Thus, the creator (owner) of the contract must mark all permitted addresses as "verified" before the voting can begin (write a function that would help the creator to mark an address as "verified"). To prevent cheating, each verified account can vote only once - after voting, the address is marked as "unverified" and thus can't vote again ... unless the creator (owner) of the contract marks it as "verified" again. Write a function that would return the winner(s) - that is, the option(s) with the most votes. The contract should not accept any funds sent to it - try to process them accordingly. Voting has no end date.