Skip to content
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

Fix solc version detection for --solc-solcs-(select|bin) case #138

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

elopez
Copy link
Member

@elopez elopez commented Dec 6, 2020

Currently, the solc version is detected only once when starting, but
this may cause a mismatch between the detected version and the
compiler version that is then used. Move the version extraction
to the _run_solc(...) function to avoid this problem. Also add
support for passing an environment to get_version(...), this is
required when using compilers managed with solc-select.

Currently, the solc version is detected only once when starting, but
this may cause a mismatch between the detected version and the
compiler version that is then used. Move the version extraction
to the _run_solc(...) function to avoid this problem. Also add
support for passing an environment to get_version(...), this is
required when using compilers managed with solc-select.
@elopez elopez force-pushed the solc-version-detection branch from d22bac1 to dcc9bf7 Compare December 6, 2020 19:06
@montyly
Copy link
Member

montyly commented Dec 7, 2020

This is a great catch, thanks @elopez

@montyly montyly merged commit 4ad634a into crytic:dev Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants