Skip to content

paul-mcaviney/smart-contract-deep-dive

Repository files navigation

Home Owners Association Presidential Election Smart Contract

This is a smart contract accompanying the Smart Contract Deep Dive technical article written by John Vester.


Note: This smart contract is for learning purposes only and not to be used in production!


This smart contract is intended to decide who the winner of the presidential election is for the Home Owners Association. It has functions for adding new candidates, removing candidates, resetting the vote count, adding votes, and deciding the winner.

It also inherits from OpenZeppelin's Ownable contract to enable access controls for certain functions. A regular user should not be able to add or remove candidates, or reset the votes.

About

Smart Contract for Deep Dive Article

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published