mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-12 21:01:01 +00:00
standard json output: skip serializing keys instead of emitting a null object (#52)
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
This commit is contained in:
@@ -20,15 +20,17 @@ use self::extra_metadata::ExtraMetadata;
|
|||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct EVM {
|
pub struct EVM {
|
||||||
/// The contract EVM legacy assembly code.
|
/// The contract EVM legacy assembly code.
|
||||||
#[serde(rename = "legacyAssembly")]
|
#[serde(rename = "legacyAssembly", skip_serializing_if = "Option::is_none")]
|
||||||
pub assembly: Option<Assembly>,
|
pub assembly: Option<Assembly>,
|
||||||
/// The contract PolkaVM assembly code.
|
/// The contract PolkaVM assembly code.
|
||||||
#[serde(rename = "assembly")]
|
#[serde(rename = "assembly", skip_serializing_if = "Option::is_none")]
|
||||||
pub assembly_text: Option<String>,
|
pub assembly_text: Option<String>,
|
||||||
/// The contract bytecode.
|
/// The contract bytecode.
|
||||||
/// Is reset by that of PolkaVM before yielding the compiled project artifacts.
|
/// Is reset by that of PolkaVM before yielding the compiled project artifacts.
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub bytecode: Option<Bytecode>,
|
pub bytecode: Option<Bytecode>,
|
||||||
/// The contract deployed bytecode.
|
/// The contract deployed bytecode.
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub deployed_bytecode: Option<DeployedBytecode>,
|
pub deployed_bytecode: Option<DeployedBytecode>,
|
||||||
/// The contract function signatures.
|
/// The contract function signatures.
|
||||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
|
|||||||
Reference in New Issue
Block a user