- We import an account using its private key to metamask after migrating the contract to ganache blockchain
- The metamask popup the confirms our vote by asking to pahy some GAS for the transaction
- After vote has been cast the votecount for the candidate is increased and displayed, now the voter is not eligible to vote anymore
- Then we select another voter using metamask extention
- After casting vote from that account we see that candidate-1 has 2 votes
- Now we can add more accounts to take part in the election to vote