Skip to main content

read_deployments

Function read_deployments 

Source
pub fn read_deployments(
    root: &Path,
    deployments_dir: Option<&Path>,
    contract_file: &Path,
) -> Vec<Deployment>
Expand description

Read all deployments for a Solidity contract file.

Walks deployments_dir (defaulting to <root>/deployments), looks for a <network>/<contract-stem>.json file in each top-level subdirectory, and returns the parsed Deployments tagged with their network name.

Errors when reading individual entries are silently skipped to mirror the legacy preprocessor’s lenient behaviour.