My first smart contract using Hardhat + Chai + Waffle.
-
transferOwnership(address newOwner)
-
addPoll(string title)
-
addCandidate(uint256 pollId, address person, string name)
-
castVote(uint256 candidateId)
-
TransferredOwnership(...)
-
PollAdded(...)
-
CandidateAdded(...)
-
VoteCasted(...)
- Utilize TypeScript (for tests)
- Add React interface
- Add events and write tests for them
- Review Solidity attack vectors and make appropriate changes