MCPcopy Create free account
hub / github.com/B3Pay/B3Wallet / getModuleHash

Function getModuleHash

src/lib/utils.ts:61–70  ·  view source on GitHub ↗
(
  status: CanisterStatusResponse
)

Source from the content-addressed store, hash-verified

59}
60
61export const getModuleHash = (
62 status: CanisterStatusResponse
63): string | undefined => {
64 const moduleHash = status.module_hash
65
66 if (moduleHash.length === 1) {
67 return toHexString(moduleHash[0] as Uint8Array)
68 }
69 return undefined
70}
71
72export function cn(...inputs: ClassValue[]) {
73 return twMerge(clsx(inputs))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected