solidity合约开发一
solidity合约开发一
1、安装 0.4.26版本的solc编译器
2、使用remx开发
1、安装 0.4.26版本的solc编译器
Step:1 安装 0.4.26的solc
安装 0.4.26的版本只有在docker中才能找到这个版本。所以要安装这个版本只能先用 ubuntu 安装 docker-ce版本的docker 然后在安装0.4.26solc
0.4.26.solc下载地址:https://hub.docker.com/r/ethereum/solc
-
启动docker
systemctl start docker
-
安装 0.4.26.solc
docker pull ethereum/solc:0.4.26
-
查看docker 镜像文件
docker images # 返回: root@hc-lubuntu:~# docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest bf756fb1ae65 6 months ago 13.3kB cita/cita-run ubuntu-18.04-20191128 dbc23a2beff8 7 months ago 590MB ethereum/solc 0.4.26
-
使用 ethereum/solc 0.4.26 容器
docker run -t -i ethereum/solc:0.4.26 --version # 说明 查看solc 的版本
至此 solc 0.4.26安装完成
2、使用remx-ide编写solidity
Step:1 下载remx-ide
下载地址:https://github.com/ethereum/browser-solidity/tree/gh-pages 的页面说明下载 zip 文件来使用
解压 remix-7013ed1.zip
使用 浏览器打开即可使用