diff --git a/ethers-solc/src/artifacts/mod.rs b/ethers-solc/src/artifacts/mod.rs index ca31c1da..3a8c6ffc 100644 --- a/ethers-solc/src/artifacts/mod.rs +++ b/ethers-solc/src/artifacts/mod.rs @@ -106,6 +106,8 @@ impl CompilerInput { once_cell::sync::Lazy::new(|| VersionReq::parse("<0.6.0").unwrap()); static PRE_V0_8_10: once_cell::sync::Lazy = once_cell::sync::Lazy::new(|| VersionReq::parse("<0.8.10").unwrap()); + static PRE_V0_7_5: once_cell::sync::Lazy = + once_cell::sync::Lazy::new(|| VersionReq::parse("<0.7.5").unwrap()); if PRE_V0_6_0.matches(version) { if let Some(ref mut meta) = self.settings.metadata { @@ -128,6 +130,11 @@ impl CompilerInput { self.settings.model_checker = None; } + if PRE_V0_7_5.matches(version) { + // introduced in 0.7.5 + self.settings.via_ir.take(); + } + self }