( status: CanisterStatusResponse )
| 59 | } |
| 60 | |
| 61 | export 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 | |
| 72 | export function cn(...inputs: ClassValue[]) { |
| 73 | return twMerge(clsx(inputs)) |
nothing calls this directly
no outgoing calls
no test coverage detected