Hyperlinkv0.8.0-beta.28

Node

Node.ContractMismatchclasssrc/internal/nodeCore.ts:1161

Client and server disagree on a resource's wire contract (contractHash mismatch). Surfaced by Hyperlink.verifyConnection(node, { deep: true, resource, contractHash }) and by default-on addressed Hyperlink.client verify (F4).

errorsHyperlink.verifyConnectionHyperlink.client
export class ContractMismatch extends Data.TaggedError("ContractMismatch")<{
  readonly node: string;
  readonly url: string;
  readonly resource: string;
  readonly expected: string;
  readonly actual: string | undefined;
}> {
  override get message() {
    const got = this.actual === undefined ? "(missing)" : this.actual;
    return (
      `Node "${this.node}" at ${this.url} serves "${this.resource}" with contract ` +
      `${got}, but this client expects ${this.expected} — redeploy the stale side.`
    );
  }
}
Referenced by 1 symbols