MCPcopy Create free account
hub / github.com/apache/maka / assertMatchingComposition

Function assertMatchingComposition

packages/storage/src/state-root-composition.ts:105–114  ·  view source on GitHub ↗
(
  record: StateRootCompositionRecord,
  compositionId: string,
)

Source from the content-addressed store, hash-verified

103}
104
105function assertMatchingComposition(
106 record: StateRootCompositionRecord,
107 compositionId: string,
108): void {
109 if (record.compositionId === compositionId) return;
110 throw new StateRootCompositionError(
111 'composition_mismatch',
112 `State Root requires Runtime Host composition ${record.compositionId}`,
113 );
114}
115
116function requireCompositionId(value: string): void {
117 if (!COMPOSITION_ID_PATTERN.test(value) || value.length > 128) {

Callers 1

bindStateRootCompositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected