Use low fidelity Ast by default

rebase
This commit is contained in:
franfran 2022-12-29 16:56:12 +01:00 committed by francois
parent f7ea831d7c
commit 29510ed8e4
1 changed files with 7 additions and 6 deletions

View File

@ -16,8 +16,9 @@ use crate::{
BytecodeOutputSelection, ContractOutputSelection, EvmOutputSelection, BytecodeOutputSelection, ContractOutputSelection, EvmOutputSelection,
EwasmOutputSelection, EwasmOutputSelection,
}, },
CompactContractBytecodeCow, DevDoc, Evm, Ewasm, FunctionDebugData, GasEstimates, Ast, CompactContractBytecodeCow, DevDoc, Evm, Ewasm, FunctionDebugData, GasEstimates,
GeneratedSource, LosslessAbi, LosslessMetadata, Metadata, Offsets, Settings, SourceUnit, GeneratedSource, LosslessAbi, LosslessMetadata, Metadata, Offsets,
Settings, /*SourceUnit,*/
StorageLayout, UserDoc, StorageLayout, UserDoc,
}, },
sources::VersionedSourceFile, sources::VersionedSourceFile,
@ -68,7 +69,7 @@ pub struct ConfigurableContractArtifact {
#[serde(default, skip_serializing_if = "Option::is_none")] #[serde(default, skip_serializing_if = "Option::is_none")]
pub ewasm: Option<Ewasm>, pub ewasm: Option<Ewasm>,
#[serde(default, skip_serializing_if = "Option::is_none")] #[serde(default, skip_serializing_if = "Option::is_none")]
pub ast: Option<SourceUnit>, pub ast: Option<Ast>,
/// The identifier of the source file /// The identifier of the source file
#[serde(default, skip_serializing_if = "Option::is_none")] #[serde(default, skip_serializing_if = "Option::is_none")]
pub id: Option<u32>, pub id: Option<u32>,