From f11b9de4cc38d4cfe4c3501f497813cb2664ff4c Mon Sep 17 00:00:00 2001 From: "Shiv Bhonde | shivbhonde.eth" Date: Wed, 17 Jul 2024 18:05:38 +0530 Subject: [PATCH] fix: ignore strings starting with 0 (#894) --- .../nextjs/app/debug/_components/contract/utilsContract.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nextjs/app/debug/_components/contract/utilsContract.tsx b/packages/nextjs/app/debug/_components/contract/utilsContract.tsx index 0a92861ea..217012ce3 100644 --- a/packages/nextjs/app/debug/_components/contract/utilsContract.tsx +++ b/packages/nextjs/app/debug/_components/contract/utilsContract.tsx @@ -19,7 +19,7 @@ const isJsonString = (str: string) => { }; const isBigInt = (str: string) => { - if (str.trim().length === 0) return false; + if (str.trim().length === 0 || str.startsWith("0")) return false; try { BigInt(str); return true;