fix(solc): via-ir should be optional (#1664)

This commit is contained in:
Matthias Seitz 2022-09-04 23:36:31 +02:00 committed by GitHub
parent e425b55c92
commit fca8f997fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -947,8 +947,10 @@ pub struct MetadataSettings {
/// since metadata is per file
#[serde(default)]
pub libraries: BTreeMap<String, String>,
#[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<bool>,
}
/// Compilation source files/source units, keys are file names