fn get_artifact_code<FEN: FoundryEvmNetwork>(
state: &Cheatcodes<FEN>,
path: &str,
deployed: bool,
) -> Result<Bytes>Expand description
Returns the bytecode from a JSON artifact file.
See get_artifact_source for the supported path formats.
This function is safe to use with contracts that have library dependencies.
alloy_json_abi::ContractObject validates bytecode during JSON parsing and will
reject artifacts with unlinked library placeholders.