From ed61aec8d7890497e58ea862d4a1742a1dd865c2 Mon Sep 17 00:00:00 2001 From: viktorking7 <140458814+viktorking7@users.noreply.github.com> Date: Sat, 21 Dec 2024 09:57:34 +0100 Subject: [PATCH] Update formatWei.ts --- apps/web/src/utils/formatWei.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/utils/formatWei.ts b/apps/web/src/utils/formatWei.ts index 8bd4f1086f..5ae0c2ce81 100644 --- a/apps/web/src/utils/formatWei.ts +++ b/apps/web/src/utils/formatWei.ts @@ -1,6 +1,6 @@ import { formatEther, parseEther } from 'viem'; -export function formatWei(wei?: bigint): number | '...' { +export function formatWei(wei?: bigint): bigint | '...' { if (wei === undefined) { return '...'; } @@ -8,3 +8,4 @@ export function formatWei(wei?: bigint): number | '...' { const priceInEth = formatEther(wei); return parseEther(priceInEth.toString()); } +