From 0ed407f1b2c69e1face05400658a0a3b4088dbf8 Mon Sep 17 00:00:00 2001 From: bitbeckers Date: Wed, 27 Mar 2024 16:22:24 +0100 Subject: [PATCH] fix(lowercase): compare addresses lowercased --- frontend/hooks/verifyFractionClaim.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/hooks/verifyFractionClaim.ts b/frontend/hooks/verifyFractionClaim.ts index bf366e9f..0f0484e7 100644 --- a/frontend/hooks/verifyFractionClaim.ts +++ b/frontend/hooks/verifyFractionClaim.ts @@ -44,7 +44,7 @@ export const useVerifyFractionClaim = () => { // Find the proof for (const [leaf, value] of tree.entries()) { - if (value[0] === address) { + if ((value[0] as string).toLowerCase() === address.toLowerCase()) { results.push({ proof: tree.getProof(leaf), units: Number(value[1]),