From fca8f997fa8ac3663dae19149ae6c2b6d93ae574 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sun, 4 Sep 2022 23:36:31 +0200 Subject: [PATCH] fix(solc): via-ir should be optional (#1664) --- ethers-solc/src/artifacts/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ethers-solc/src/artifacts/mod.rs b/ethers-solc/src/artifacts/mod.rs index d27c1331..c406caea 100644 --- a/ethers-solc/src/artifacts/mod.rs +++ b/ethers-solc/src/artifacts/mod.rs @@ -947,8 +947,10 @@ pub struct MetadataSettings { /// since metadata is per file #[serde(default)] pub libraries: BTreeMap, - #[serde(rename = "viaIR")] - pub via_ir: bool, + /// Change compilation pipeline to go through the Yul intermediate representation. This is + /// false by default. + #[serde(rename = "viaIR", default, skip_serializing_if = "Option::is_none")] + pub via_ir: Option, } /// Compilation source files/source units, keys are file names