This project demonstrates a basic Hardhat use case. It comes with a sample contract, and a script that deploys that contract.
Try running some of the following tasks:
- Install harthat
npm i hardhat
- Select project type
npx hardhat
- Install others packages
npm install --save-dev @nomiclabs/hardhat-ethers ethers @nomiclabs/hardhat-waffle ethereum-waffle chai
- In the hardhat config file just copy and paste the template and replace your own api link and metamsk private key (mention the testnet name)
- In the Scripts folder you will find the deploy.js file where you need to use this template and change the Contract name(by your own contract) (if in your contract have any constractor which take string then pass any string to it)
In the command line write
npx hardhat compile
In the command line write
npx hardhat run scripts/deploy.js
Solution: npm install --save-dev @nomicfoundation/hardhat-toolbox