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

Function bytesToUtf8String

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

Source from the content-addressed store, hash-verified

58 * @returns The decoded UTF-8 string.
59 */
60export function bytesToUtf8String(bytes: Uint8Array): string {
61 return new TextDecoder().decode(bytes);
62}
63
64/**
65 * Checks whether a Uint8Array contains the UTF-8 byte sequence of a given

Callers 2

bytes.tsFile · 0.85
parseJsonBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected