MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getPrimaryAddress

Function getPrimaryAddress

src/utils/Uri.js:129–132  ·  view source on GitHub ↗

* Gets primary address of a content url. * @param {string} url * @returns {string}

(url)

Source from the content-addressed store, hash-verified

127 * @returns {string}
128 */
129 getPrimaryAddress(url) {
130 const [, primary] = url.split("::primary:");
131 return primary;
132 },
133};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected