I would like to compile older versions of solc contract source code using a solc compiler on my local machine. Is there a website from which to download old solc compilers?
Google revealed a GitHub of old solcs, but I tried using node to run the .js
. files without success (could be using this wrong).
Best Answer
I maintain a Python library called py-solc-x that allows you to install and use multiple versions of solc at the same time. It supports versions
>=0.4.11
. I've included some code examples below to give an idea of how it works.Installing a new version of solc:
Checking installed versions and versions can be installed:
Setting the current solc version using a pragma statement: