I need Solidity version manager to manage multiple version of solc installed globally. Is there a rbenv, nvm, pyenv tool for solidity?


You can specify the version of Solidity at the top of each file.

pragma solidity ^0.4.12;


If you have the latest version of Solidity it will handle compilation of old versions. More about the pragma here.

|improve this answer|||||

This is actually covered in the solc-js documentation.

|improve this answer|||||
  • 1
    won't work. I need to be able to switch versions using CLI binary – rstormsf Jun 27 '17 at 23:38
  • 2
    Why not write a wrapper for the cli binary that uses the node interface? – DeviateFish Jun 29 '17 at 19:01
  • 1
    I suppose this is what I have to do – rstormsf Jun 29 '17 at 21:39
  • 3
    If this is something that there's big demand for, I might work on something for it. I've been (slowly) building a set of build tools for contracts over the past couple weeks anyway, so this might be a useful addition. – DeviateFish Jun 29 '17 at 23:59
  • 1
    I will contribute to it – rstormsf Jun 30 '17 at 0:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.