Skip to main content

validate_note_update_expected_kind

Function validate_note_update_expected_kind 

Source
pub fn validate_note_update_expected_kind(
    note: &Note,
    expected_kind: &Option<AtomicUpdateKind>,
) -> RuntimeResult<()>
Expand description

Enforce a caller’s explicit update-kind discriminator against a resolved note before any pack hook can inspect or normalize the request. Canonical KG dispatch performs this mismatch check before its hook; the atomic adapter calls this same helper to preserve that error ordering.