fn update_config_by_metadata(
config: &Config,
doc: &mut DocumentMut,
meta: &Metadata,
chain: Chain,
) -> Result<()>
Expand description
Update the configuration file with the metadata. This function will update the configuration file with the metadata from the contract. It will update the following fields:
auto_detect_solc
tofalse
solc_version
to the value from the metadataevm_version
to the value from the metadata, if the metadata’s evm_version is “Default”, then this is derived from the solc version this contract was compiled with.via_ir
to the value from the metadatalibraries
to the value from the metadatametadata
to the value from the metadatacbor_metadata
,use_literal_content
, andbytecode_hash
optimizer
to the value from the metadataoptimizer_runs
to the value from the metadataoptimizer_details
to the value from the metadatayul_details
,yul
, etc.simpleCounterForLoopUncheckedIncrement
is ignored for now
remappings
andstop_after
are pre-validated to be empty and None, respectivelymodel_checker
,debug
, andoutput_selection
are ignored for now
Detailed information can be found from the following link: