Truffle教程

Truffle 安装依赖

Truffle – 安装依赖

项目中可以定义一个 ethpm.json文件,来配置依赖项。安装配置文件中配置的所有依赖项,运行:
$ truffle install
ethpm.json文件示例:
文件: ethpm.json
{
  "package_name": "adder",
  "version": "0.0.3",
  "description": "Simple contract to add two numbers",
  "authors": [
    "Tim Coulter <tim.coulter@consensys.net>"
  ],
  "keywords": [
    "ethereum",
    "addition"
  ],
  "dependencies": {
    "owned": "^0.0.1"
  },
  "license": "MIT"
}
更多配置项,可参考官方文档。
昵称: 邮箱:
Copyright © 2022 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4