-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
py-solc is incompatible with Solidity compiler 0.5.0 #64
Comments
Changing the solc version using py-solc with for example |
I installed solc via sudo apt-get install solc so i havent touched the installer. |
I don't intend to say you introduced new errors. I just want to remark that the changes you listed and fixed are not the only things broken by solc v0.5.0 in py-solc. |
@Jonasmpi - I'm starting to rely on this as it's very faithful to the original - thanks for putting it together. I found the other fork attempts to self-install and maintain Would you consider rolling this out as a separate fork and |
@Pet3ris Sorry for the late anwser. For myself we complety changed our backend code now to higher maintained libraries based on javascript, because as @ABBDVD pointed out, there are to many things that are broken at the moment. Depending on the situation i may consider doing this. |
py-solc
Version: 3.2.0solc
Version: 0.5.0What was wrong?
py-solc is incompatible with Solidity compiler 0.5.0
--combined-json clone-bin
is deprecated in version 0.5.0 but is set in main.py and wrapper.py. Has to be removed.Compile from source uses the solc compiler option to compile from stdin but does this incorrectly.
The fix would be to add
command += "-"
at the end of the command creation.A quick and dirty fix for both issues can be seen on my repository master branch at:
https://github.com/Jonasmpi/py-solc
Cute Animal Picture
The text was updated successfully, but these errors were encountered: