From e87763def4d97c60ddfa20409bb850a1a139d105 Mon Sep 17 00:00:00 2001 From: storywithoutend Date: Thu, 18 Aug 2022 16:43:34 +0800 Subject: [PATCH 1/2] set resolverId to lower case in getProfile --- packages/ensjs/src/functions/getProfile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ensjs/src/functions/getProfile.ts b/packages/ensjs/src/functions/getProfile.ts index 452ffe29..57036cd8 100644 --- a/packages/ensjs/src/functions/getProfile.ts +++ b/packages/ensjs/src/functions/getProfile.ts @@ -362,7 +362,7 @@ const graphFetch = async ( ;({ domain } = await client.request(query, { id })) resolverResponse = domain?.resolver } else { - const resolverId = `${resolverAddress}-${id}` + const resolverId = `${resolverAddress.toLocaleLowerCase()}-${id}` ;({ resolver: resolverResponse, domain } = await client.request( customResolverQuery, { id, resolverId }, From bf1b5c041000a93ef2756bf67e625f5e1f5a7f4f Mon Sep 17 00:00:00 2001 From: storywithoutend Date: Thu, 18 Aug 2022 17:11:23 +0800 Subject: [PATCH 2/2] fix toLowerCase --- packages/ensjs/src/functions/getProfile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ensjs/src/functions/getProfile.ts b/packages/ensjs/src/functions/getProfile.ts index 57036cd8..e57abbab 100644 --- a/packages/ensjs/src/functions/getProfile.ts +++ b/packages/ensjs/src/functions/getProfile.ts @@ -362,7 +362,7 @@ const graphFetch = async ( ;({ domain } = await client.request(query, { id })) resolverResponse = domain?.resolver } else { - const resolverId = `${resolverAddress.toLocaleLowerCase()}-${id}` + const resolverId = `${resolverAddress.toLowerCase()}-${id}` ;({ resolver: resolverResponse, domain } = await client.request( customResolverQuery, { id, resolverId },