Skip to main content

encode_call_header

Function encode_call_header 

Source
pub fn encode_call_header(
    contract: &str,
    method: &str,
) -> Result<Vec<u8>, ComponentError>
Expand description

Encode a call header: the contract name’s byte length as a little-endian u16, the contract name, then the method name, which runs to the end of the header. Both are UTF-8.