Hardhatdevelopment environment to compile, deploy, test, and debug your contract.
npxto run it in advance.
Create an empty hardhat.config.jsand create two folders in your terminal command line:
BVExampleToken.solin the folder
deploy.jsin the folder
Notice: Our contract file - you must match the name of your smart contract file with the name of your token, so if you choose
BVExampleToken, you must name your contract file
BVExampleToken.sol. Now your project's structure would be like:
contracts/directory and modify your ERC-20 contract here:
.envin your root directory of the project and add your API URL and Metamask PRIVATE KEY to it. Your
.envshould look like this:
Notice: Your Metamask Private Key
MUST NOTbe visible. Others may steal your token via your Private key.
scripts/directory and modify your deploy script here: