(hash: number[])
| 124 | } |
| 125 | |
| 126 | export function hashToHex(hash: number[]) { |
| 127 | const hashHex = hash.map(byte => byte.toString(16).padStart(2, "0")).join("") |
| 128 | |
| 129 | return `0x${hashHex}` |
| 130 | } |
| 131 | |
| 132 | export async function calculateWasmHash(name: string, asHex: boolean) { |
| 133 | const buffer = await readFile( |
no outgoing calls
no test coverage detected