Skip to main content

validate_call_origin

Function validate_call_origin 

Source
pub fn validate_call_origin(origin: &CallOrigin) -> Result<(), OpaqueFieldError>
Expand description

Check a CallOrigin: its call_key, and its message position’s message_id when present, must pass the shared opaque-field rule. Errors name ORIGIN_CALL_KEY_FIELD or ORIGIN_MESSAGE_ID_FIELD. Every Principal is accepted as the carrier, and every u32 as the index.