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_solctofalsesolc_versionto the value from the metadataevm_versionto 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_irto the value from the metadatalibrariesto the value from the metadatametadatato the value from the metadatacbor_metadata,use_literal_content, andbytecode_hash
optimizerto the value from the metadataoptimizer_runsto the value from the metadataoptimizer_detailsto the value from the metadatayul_details,yul, etc.simpleCounterForLoopUncheckedIncrementis ignored for now
remappingsandstop_afterare pre-validated to be empty and None, respectivelymodel_checker,debug, andoutput_selectionare ignored for now
Detailed information can be found from the following link: