This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a Hardhat Ignition module that deploys that contract.
Try running some of the following tasks:
npx hardhat compile
npx hardhat help
# 在本地测试网络部署
npx hardhat test
REPORT_GAS=true npx hardhat test
# 如果你在本地测试时使用 Hardhat 网络,可以先启动本地节点
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/SelfBank.ts
# 新开一个终端
npx hardhat run scripts/deploy.ts --network localhost
# 或者直接在 Hardhat 内置网络上测试部署
npx hardhat run scripts/deploy.ts