ApeWorX / py-solc-x

Python wrapper and version management tool for the solc Solidity compiler.
https://solcx.readthedocs.io/
MIT License
138 stars 48 forks source link

fix: user warning when solc is not installed #123

Closed Thierryonre closed 3 years ago

Thierryonre commented 3 years ago

What I did

Updated the user warning given when solc is not installed so that instead of it saying "Call solcx.get_available_solc_versions() to view for available versions" to "Call solcx.get_installable_solc_versions() to view for available versions" as the previous function doesn't seem to exist anymore. A minor change but slightly helpful :D

Related issue: # None

How I did it

After receiving the error, I used dir(solx) after I imported it to see what attributes and functions it had.

How to verify it

Since I only edited a string that is displayed for the user, I assumed that test cases weren't necessary and neither were verifications.

Checklist