- 编译
npx hardhat compile
- 部署
npx hardhat ignition deploy ./ignition/modules/Lock.js --network bnb_testnet
- 验证
npx hardhat verify --network bnb_testnet ${contratc_address} ${constructor_args}
- bnb官网:https://docs.bnbchain.org/docs/hardhat-new/#compile-smart-contract
- hardhat官网:https://hardhat.org/hardhat-runner/docs/guides/deploying
- bnb_test浏览器:https://bscscan.com/
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 help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/Lock.js