Solidity 学习 -1
安装 truffle
npm install -g truffle
初始化 project
truffle init
创建本地环境
- 使用 remixed 工具
npm install -g @remix-project/remixd
-
打开 remixed 页面 ( remix.ethereum.org)
-
启动, 在你的根目录下, 运行
remixed -s [your source code list] --remix-ide http://remix.ethereum.org
-
点击 home -> file -> connect to local host;
-
加载完本地代码之后, 就可以开始编码了
ganache 连接本地
- if you installed ganache, you can use ganache;