8

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

3 Answers 3

3

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.

1

This is actually covered in the solc-js documentation.

5
  • 1
    won't work. I need to be able to switch versions using CLI binary
    – rstormsf
    Commented Jun 27, 2017 at 23:38
  • 2
    Why not write a wrapper for the cli binary that uses the node interface? Commented Jun 29, 2017 at 19:01
  • 1
    I suppose this is what I have to do
    – rstormsf
    Commented Jun 29, 2017 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. Commented Jun 29, 2017 at 23:59
  • 1
    I will contribute to it
    – rstormsf
    Commented Jun 30, 2017 at 0:44
0

I know this is an old topic, but since OP ask for solidity equivalent of nvm, I would like to point out to svm for solidity compiler version management for the sake of reference.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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