Skip to main content

encode_chain_response_operation_started

Function encode_chain_response_operation_started 

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

Encode a Result(OperationStartedResult, GenericError) response.

Ok(Some(id)) encodes as Started { operationId: id } (variant 0). Ok(None) encodes as LimitReached (variant 1).

Used by tags 83 (body), 85 (storage), 87 (call).