MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / checkComponent

Function checkComponent

lib.esm/hash/namehash.js:6–9  ·  view source on GitHub ↗
(comp)

Source from the content-addressed store, hash-verified

4const Zeros = new Uint8Array(32);
5Zeros.fill(0);
6function checkComponent(comp) {
7 assertArgument(comp.length !== 0, "invalid ENS name; empty component", "comp", comp);
8 return comp;
9}
10function ensNameSplit(name) {
11 const bytes = toUtf8Bytes(ensNormalize(name));
12 const comps = [];

Callers 1

ensNameSplitFunction · 0.70

Calls 1

assertArgumentFunction · 0.90

Tested by

no test coverage detected