This is an example of how to run the smart contract locally on your computer.
Below is an example of how to start interacting with the smart contract locally.
- Clone the repo
git clone https://github.com/fiestaxxl/Intro2blockchain_project.git
- Install NPM packages
cd Intro2blockchain_project npm install - Code installed successfully, you can start testing it.
You can interact with the smart contract on the local network now.
npx hardhat compileto compile the solidity codenpx hardhat testto run the unit testing of the contract