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

fixed issue#2004 parsing solc verison with trailing newlines #2005

Merged
merged 2 commits into from Jan 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions ethers-solc/src/compile/mod.rs
Expand Up @@ -686,6 +686,7 @@ fn version_from_output(output: Output) -> Result<Version> {
let version = output
.stdout
.lines()
.filter(|l| !l.as_ref().unwrap().is_empty())
elizabethdinella marked this conversation as resolved.
Show resolved Hide resolved
.last()
.ok_or_else(|| SolcError::solc("version not found in solc output"))?
.map_err(|err| SolcError::msg(format!("Failed to read output: {err}")))?;
Expand Down