Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
liushooter committed Nov 18, 2020
1 parent 97b2ddb commit 2c87b49
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# eth-hardhat-demo
eth hardhat demo
## eth hardhat demo

[Hardhat](https://hardhat.org/) 是 Nomic Labs 发布的以太坊开发环境工具,原来叫 Buidler。

Hardhat 可以用来代替 [Truffle](https://www.trufflesuite.com/truffle)

## hardhat 命令行

`npx hardhat --version` 版本

`npx hardhat accounts` 执行 hardhat.config.js 定义的 task

`npx hardhat compile` 编译

`npx hardhat flatten` 合并solidity文件

`npx hardhat node` 启动节点

`npx hardhat test` 运行测试

`npx hardhat run scripts/deploy.js` 部署合约

`npx hardhat run scripts/deploy.js --network localhost` 部署合约

0 comments on commit 2c87b49

Please sign in to comment.