You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a heads up - older solc versions do return 1 from --help. The change is pretty fresh - it has been fixed in 0.8.10, which was just released (see ethereum/solidity#12118).
It should have been 0 for --help all along since the compiler really does what is requested and it's not a failure. The only reason it was counted as one was that it was being handled by the same code that detects no arguments and prints help. No arguments on the command line is a case where we do want an error - it's still one, even on 0.8.10.
Environment information
py-solc-x
Version: 1.1.1solc
Version: 0.8.10What was wrong?
Code (pretty much straight from https://web3py.readthedocs.io/en/stable/contracts.html):
Expected output: no errors
Actual output: solc returned 0, solc_wrapper expected 1 from help, so it throws an error
Abbreviated output:
Test outside of solcx showing solc returns 0:
Full output attached:
eth1.txt
How can it be fixed?
Change solc_wrapper to always expect 0 at this line?
The text was updated successfully, but these errors were encountered: