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

Function bytesToHexString

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

Source from the content-addressed store, hash-verified

95 * @returns PrefixedHexString The hexadecimal representation of the bytes.
96 */
97export function bytesToHexString(bytes: Uint8Array): PrefixedHexString {
98 return getPrefixedHexString(Buffer.from(bytes).toString("hex"));
99}
100
101/**
102 * Converts a hexadecimal string to a Uint8Array. The string must be a valid

Callers 15

#ethSignMethod · 0.90
#derivePathMethod · 0.90
#personalSignMethod · 0.90
#getNonceMethod · 0.90
genesis-state.tsFile · 0.90
downloader.tsFile · 0.90
testReporterFunction · 0.90
#modifyRequestMethod · 0.90
#getNonceMethod · 0.90

Calls 2

getPrefixedHexStringFunction · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected