Skip to main content

encode_chain_response_nullable_string

Function encode_chain_response_nullable_string 

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

Encode a Result(Nullable(str), GenericError) response.

Used by tag 101 (transaction broadcast).