Compiling, deploying, and testing the smart contracts
The Git project has already been unboxed for your convenience, and it is now prepared for you to the compilation and testing of smart contracts. Follow the steps outlined as follows to successfully compile and deploy a smart contract on the Hardhat blockchain:
- Launch VS Code on your computer. Navigate to the project folder that contains the unboxed Hardhat project. The following figure provides an example of how the project folder should look.
Figure 8.3 – VS Code with the Sepolio Pet Store project
- Now that you are in the project folder within VS Code, you can proceed to compile and deploy the smart contracts to the Hardhat local blockchain. This process will involve using the Hardhat commands and interacting with the blockchain to simulate the deployment.
- The project folder in VS Code provides you with an environment to manage and interact with your smart contracts effectively...