oc · docs
docs / documentation

@orangecheck/pledge-core


@orangecheck/pledge-core / outcomesContradict

Function: outcomesContradict()

function outcomesContradict(a: OutcomeEnvelope, b: OutcomeEnvelope): boolean;

Defined in: pledge-core/src/state.ts:115

Detect whether two outcome envelopes for the same pledge are contradictory. Two outcomes contradict when they reference the same pledge_id AND classify to different outcome values (kept vs broken etc).

Parameters

Returns

boolean