(bytes: Uint8Array)
| 17 | |
| 18 | const textDecoder = new TextDecoder(); |
| 19 | export function bytesToText(bytes: Uint8Array): string { |
| 20 | return textDecoder.decode(bytes); |
| 21 | } |
| 22 | |
| 23 | export function padZeroes(num: number | string, length: number): string { |
| 24 | return ('0'.repeat(length) + num).slice(-length); |
no outgoing calls
no test coverage detected