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

Function truncateHash

src/utils/format.ts:8–10  ·  view source on GitHub ↗
(hash: string)

Source from the content-addressed store, hash-verified

6};
7
8export const truncateHash = (hash: string) => {
9 return hash ? `${hash.slice(0, 6)}…${hash.slice(-4)}` : "-";
10};
11
12export const convertHexadecimal = (value: string): number => {
13 return parseInt(value, 16);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected