Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ Ballot Public

Implementing a smart contract with Voting mechanism. Including tests.

Notifications You must be signed in to change notification settings

sinaFa/Ballot

Repository files navigation

Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.

Try running some of the following tasks:

To run the script by passign the proposals as arguments

yarn run ts-node --files scripts/Deployment.ts "proposal1" "proposal2" "proposal3"

To give rights to a wallet:

yarn run ts-node --files scripts/GiveRightToVote.ts [contract_address] [wallet_address]

To get the winner proposal:

yarn run ts-node --files scripts/Winner.ts [contract_address]

About

Implementing a smart contract with Voting mechanism. Including tests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published