pub fn normalize_contract(contract: &Contract) -> Result<Contract>
Normalize a parsed Contract struct to canonical form