MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / bytesToUtf8String

Function bytesToUtf8String

packages/hardhat-utils/src/bytes.ts:67–69  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

65 * @returns The decoded UTF-8 string.
66 */
67export function bytesToUtf8String(bytes: Uint8Array): string {
68 return new TextDecoder().decode(bytes);
69}
70
71/**
72 * Checks whether a Uint8Array contains the UTF-8 byte sequence of a given

Callers 1

bytes.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected