crytic / solc-select

Manage and switch between Solidity compiler versions
GNU Affero General Public License v3.0
758 stars 103 forks source link

How to add older versions to the script? #27

Closed lukasdenk closed 4 years ago

lukasdenk commented 4 years ago

Hello,

in the README.md, when typing --version, the oldest version is 0.4.11 However, when I type it, the oldest version is 0.0.24. How can I tell the script to also add all the old versions?

Thank you,

Lukas

lukasdenk commented 4 years ago

OK,

I added this code to the install_solc.sh file:

for (( i = 11; i < 24; i++ )); do
    VERSION='v0.4.'$i
    solc="$SSELECT_INSTALL_DIR/usr/bin/solc-${VERSION}"
    curl -s -f -L "https://github.com/ethereum/solidity/releases/download/${VERSION}/solc-static-linux" -o "$solc" && chmod +x "$solc" && echo "Installed solc-${VERSION}"
done