Function check_tasks_for_warnings

Source
fn check_tasks_for_warnings<N: Network>(
    endpoint: &str,
    network: NetworkName,
    tasks: &[Task<N>],
    consensus_version: ConsensusVersion,
    command: &LeoDeploy,
) -> Vec<String>
Expand description

Check the tasks to warn the user about any potential issues. The following properties are checked:

  • If the transaction is to be broadcast:
    • The program does not exist on the network.
    • If the consensus version is less than V9, the program does not use V9 features.
    • If the consensus version is V9 or greater, the program contains a constructor.