Solidity 学习 -1

211 阅读1分钟

Solidity 学习 -1

安装 truffle

npm install -g truffle

初始化 project

truffle init

创建本地环境

  1. 使用 remixed 工具
 npm install -g @remix-project/remixd
  1. 打开 remixed 页面 ( remix.ethereum.org)

  2. 启动, 在你的根目录下, 运行

remixed -s [your source code list] --remix-ide http://remix.ethereum.org
  1. 打开 "remix.ethereum.org/#optimize=t…"

  2. 点击 home -> file -> connect to local host;

  3. 加载完本地代码之后, 就可以开始编码了

ganache 连接本地

  1. if you installed ganache, you can use ganache;