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/invalid default compiler outputs #127

Closed skellet0r closed 2 years ago

skellet0r commented 2 years ago

What I did

Parse the appropriate compiler version when determining output options.

Just seeing now there is also another PR that does this exact same thing ... but i have tests :)

Related: #126

How I did it

Just added an additional argument to specify which compiler to use when parsing options

How to verify it

There is a test. The solc 0.8.x series introduced a function-debug output option, which was not available in previous compiler versions. This also happened to be the reason why using previous compiler versions, with a 0.8.x one installed raised errors.

Checklist