This project demonstrates a basic Hardhat smart contract. It comes with a sample contract, a test for that contract, and a script that deploys that contract. However, with Thirdweb, no scripts are needed.
To set up a simple Hardhat project follow these steps:
In the project terminal execute these commands
- npm init --yes
- npm install --save-dev hardhat @nomicfoundation/hardhat-toolbox
- npx hardhat
- Select Create a Javascript Project
- npm install @openzeppelin/contracts
- Keep the sample smart contract or create your own
- npx hardhat compile
- npx thirdweb deploy