[][src]Function casperlabs_contract_ffi::contract_api::fn_by_name

pub fn fn_by_name(name: &str, known_urefs: BTreeMap<String, Key>) -> Contract

Returns the serialized bytes of a function which is exported in the current module. Note that the function is wrapped up in a new module and re-exported under the name "call". fn_bytes_by_name is meant to be used when storing a contract on-chain at an unforgable reference.