Simple educational smart contract
git clone https://github.com/PavlovIvan/election-contract.git
cd election-contract
npm install hardhat
npm install
npx harhdat test
npx hardhat coverage
npx hardhat node
npx hardhat run --network localhost scripts/deploy.js
Create in the root of your project a .env
file:
RENKEBY_URL=https://eth-rinkeby.alchemyapi.io/v2/<YOUR_ALCHEMY_APP_ID>
PRIVATE_KEY=<YOUR_BURNER_WALLET_PRIVATE_KEY>
npx hardhat run --network rinkeby scripts/deploy.js