I’m using the Hardhat when implementation of the Smart contract.
When we implement the smart contracts, there are many things to do. For example, test, deploy, mint, etc…
In fact, I think it’s much easier to do that with Hardhat Task than creating
mint.js in some cases. By the way,
npx hardhat test is the easiest way for testing.
For example, add
task() functions in
hardhat.config.js to mint your token:
After that, run the command to mint.
npx hardhat mint --address 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --amount 10
I feel that it is easier to manage frequetly used things by writing them together in
hardhat.config.js as a task.