This project uses Hardhat to compile, test, and deploy an Ethereum smart contract named "Undercover". The contract is written in Solidity.
These instructions will help you set up the project on your local machine for development and testing purposes.
-
Clone the repository.
-
Navigate into the cloned repository:
cd Undercover
-
Install the dependencies:
npm install
Configure your Hardhat project by editing the hardhat.config.js
file to suit your needs. To deploy the contract, you will need to provide your own Infura key and account private key.
To run the tests, execute the following command:
npx hardhat compile
npx hardhat test
To deploy the contract to the Ethereum network, run the following command:
npx hardhat run scripts/deploy.js --network YOUR_PREFERRED_NETWORK
Replace YOUR_PREFERRED_NETWORK
with the name of the network you want to deploy to.
MIT