MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / findNetworkBySlug

Function findNetworkBySlug

src/utils/common.ts:19–21  ·  view source on GitHub ↗
(slug: string, networks: any[])

Source from the content-addressed store, hash-verified

17};
18
19export function findNetworkBySlug(slug: string, networks: any[]) {
20 return find(networks, ["slug", slug]);
21}
22
23export const generateExploreLink = (explorer, hash, type = "tx") => {
24 return `${explorer}/${type}/${hash}`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected