cairo_lang_starknet::contract

Function get_selector_and_sierra_function

Source
pub fn get_selector_and_sierra_function<T: SierraIdReplacer>(
    db: &dyn SierraGenGroup,
    function_with_body: &Aliased<ConcreteFunctionWithBodyId>,
    replacer: &T,
) -> (Felt, FunctionId)
Expand description

Converts a function to a Sierra function. Returns the selector and the sierra function id.