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

Function bytesToBigInt

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

Source from the content-addressed store, hash-verified

13 * @returns The converted bigint.
14 */
15export function bytesToBigInt(bytes: Uint8Array): bigint {
16 return hexStringToBigInt(bytesToHexString(bytes));
17}
18
19/**
20 * Converts a Uint8Array to a number.

Callers 5

#getSignedTransactionMethod · 0.90
fromSignedFunction · 0.90
#decodeMethod · 0.90
createTxFunction · 0.85
number.tsFile · 0.85

Calls 2

hexStringToBigIntFunction · 0.85
bytesToHexStringFunction · 0.85

Tested by

no test coverage detected