Function contract_from_path

Source
pub async fn contract_from_path(
    contract_path: &Path,
) -> Result<(Contract, Vec<Program>)>
Expand description

A helper for reading a Contract and its Programs from a JSON file at the given path.

Specifically, expects the JSON to be the serialized form of (Contract, Vec<Program>).