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

Function bytesToUtf8String

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

Source from the content-addressed store, hash-verified

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

Callers 3

collectRawOverridesFunction · 0.90
bytes.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected