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

Function checkComponent

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

Source from the content-addressed store, hash-verified

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

Callers 1

ensNameSplitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected