diff --git a/crates/solidity/src/solc/standard_json/output/contract/evm/mod.rs b/crates/solidity/src/solc/standard_json/output/contract/evm/mod.rs index 3ed4b7f..26897d8 100644 --- a/crates/solidity/src/solc/standard_json/output/contract/evm/mod.rs +++ b/crates/solidity/src/solc/standard_json/output/contract/evm/mod.rs @@ -20,15 +20,17 @@ use self::extra_metadata::ExtraMetadata; #[serde(rename_all = "camelCase")] pub struct EVM { /// The contract EVM legacy assembly code. - #[serde(rename = "legacyAssembly")] + #[serde(rename = "legacyAssembly", skip_serializing_if = "Option::is_none")] pub assembly: Option, /// The contract PolkaVM assembly code. - #[serde(rename = "assembly")] + #[serde(rename = "assembly", skip_serializing_if = "Option::is_none")] pub assembly_text: Option, /// The contract bytecode. /// Is reset by that of PolkaVM before yielding the compiled project artifacts. + #[serde(skip_serializing_if = "Option::is_none")] pub bytecode: Option, /// The contract deployed bytecode. + #[serde(skip_serializing_if = "Option::is_none")] pub deployed_bytecode: Option, /// The contract function signatures. #[serde(default, skip_serializing_if = "Option::is_none")]