()
| 359 | // ============================================================================ |
| 360 | |
| 361 | const hexToBytes = () => |
| 362 | z.codec(z.hex(), z.instanceof(Uint8Array), { |
| 363 | decode: (hexString) => z.util.hexToUint8Array(hexString), |
| 364 | encode: (bytes) => z.util.uint8ArrayToHex(bytes), |
| 365 | }); |
| 366 | |
| 367 | test("hexToBytes codec", () => { |
| 368 | const codec = hexToBytes(); |
no outgoing calls
no test coverage detected