08月13, 2019

A script to quickly switch between Solidity compiler versions

A script to quickly switch between Solidity compiler versions

git clone https://github.com/crytic/solc-select.git
./solc-select/scripts/install.sh

add path

export PATH=/home/USERNAME/.solc-select:$PATH

usage

$ solc --version
solc, the solidity compiler commandline interface
Version: 0.5.2+commit.1df8f40c.Linux.g++
$ SOLC_VERSION=0.4.24 solc --version
solc, the solidity compiler commandline interface
Version: 0.4.24+commit.e67f0147.Linux.g++

--versions alt

alt

![图片上传中…]

https://github.com/crytic/solc-select

本文链接:https://harry.ren/post/switch-solidity-compiler-versions.html

-- EOF --

Comments