extract_function

Function extract_function 

Source
pub fn extract_function<P>(
    path: P,
    label: &str,
    function_type: FunctionType,
) -> Result<ContractFunction, Error>
where P: AsRef<Path>,
Expand description

Extracts the information of a smart contract function (message or constructor) parsing the contract artifact.

ยงArguments

  • path - Location path of the project or contract artifact.
  • label - The label of the contract function.
  • function_type - Specifies whether to extract a message or constructor.