We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07e3b27 commit c4c4f81Copy full SHA for c4c4f81
crates/compilers/src/compilers/solc/compiler.rs
@@ -615,7 +615,7 @@ fn version_from_output(output: Output) -> Result<Version> {
615
let version = stdout
616
.lines()
617
.filter(|l| !l.trim().is_empty())
618
- .last()
+ .next_back()
619
.ok_or_else(|| SolcError::msg("Version not found in Solc output"))?;
620
// NOTE: semver doesn't like `+` in g++ in build metadata which is invalid semver
621
Ok(Version::from_str(&version.trim_start_matches("Version: ").replace(".g++", ".gcc"))?)
0 commit comments