From 94c0fe55309e4354fccd9d1e94edc1555e24229a Mon Sep 17 00:00:00 2001 From: Kropiunig <48442031+Kropiunig@users.noreply.github.com> Date: Mon, 6 Jul 2026 15:02:24 +0200 Subject: [PATCH] docs(fromHex): fix hexToNumber @example calling hexToBigInt --- src/utils/encoding/fromHex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/encoding/fromHex.ts b/src/utils/encoding/fromHex.ts index 60d1cb05f3..993b98a1d5 100644 --- a/src/utils/encoding/fromHex.ts +++ b/src/utils/encoding/fromHex.ts @@ -208,7 +208,7 @@ export type HexToNumberErrorType = * * @example * import { hexToNumber } from 'viem' - * const data = hexToBigInt('0x00000000000000000000000000000000000000000000000000000000000001a4', { size: 32 }) + * const data = hexToNumber('0x00000000000000000000000000000000000000000000000000000000000001a4', { size: 32 }) * // 420 */ export function hexToNumber(hex: Hex, opts: HexToNumberOpts = {}): number {