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
![图片上传中…]
Comments