BlockCatIO / solidity-flattener

A python utility to flatten Solidity code with imports into a single file.
MIT License
267 stars 98 forks source link

Enable Automated solc version checking #29

Closed kklash closed 5 years ago

kklash commented 6 years ago

Proposed changes check the version of solc at runtime using subprocess.check_output of solc --version, parsing the response with a regex to find the version number. The user's installed version is then used as the pragma at the top of output_solidity_code. If the regex fails to find a version number for some reason, it defaults to 0.4.13.