Skip to main content

encode_chain_response_string

Function encode_chain_response_string 

Source
pub fn encode_chain_response_string(
    request_id: &str,
    response_tag: u8,
    result: Result<&str, &str>,
) -> Vec<u8> 
Expand description

Encode a Result(str, GenericError) response.

Used by tags 97 (chain name), 99 (chain properties).