From 9b9f9ad609e55055e5b40cc4cc1f89c56e838510 Mon Sep 17 00:00:00 2001 From: Jeff Lau Date: Thu, 2 May 2024 12:20:58 +0800 Subject: [PATCH 1/2] Update 11.mdx --- docs/ensip/11.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ensip/11.mdx b/docs/ensip/11.mdx index 03de2730..cd1edf7b 100644 --- a/docs/ensip/11.mdx +++ b/docs/ensip/11.mdx @@ -37,7 +37,7 @@ export const convertEVMChainIdToCoinType = (chainId: number) =>{ } ``` -And to reverse the operation, bitwise-AND the cointType with `0x7fffffff`: `0x7fffffff & coinType`. +And to reverse the operation, bitwise-AND the coinType with `0x7fffffff`: `0x7fffffff & coinType`. ```typescript export const convertCoinTypeToEVMChainId = (coinType: number) =>{ From 8ef15a2c9087c20ca95336d94f8e70376b05c167 Mon Sep 17 00:00:00 2001 From: Luc Date: Thu, 2 May 2024 07:33:15 +0000 Subject: [PATCH 2/2] Update Bracket Escaping --- docs/ensip/12.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ensip/12.mdx b/docs/ensip/12.mdx index 216763ec..ceda5695 100644 --- a/docs/ensip/12.mdx +++ b/docs/ensip/12.mdx @@ -41,9 +41,9 @@ The client MUST treat the absence of a resolver, an revert when calling the `add ### Ethereum Address -To determine the avatar URI for an Ethereum address, the client MUST reverse-resolve the address by querying the ENS registry for the resolver of `
.addr.reverse`, where `
` is the lowercase hex-encoded Ethereum address, without leading '0x'. Then, the client calls `.text(namehash('
.addr.reverse'), 'avatar')` to retrieve the avatar URI for the address. +To determine the avatar URI for an Ethereum address, the client MUST reverse-resolve the address by querying the ENS registry for the resolver of `<address>.addr.reverse`, where `<address>` is the lowercase hex-encoded Ethereum address, without leading '0x'. Then, the client calls `.text(namehash(<address>.addr.reverse'), 'avatar')` to retrieve the avatar URI for the address. -If a resolver is returned for the reverse record, but calling `text` causes a revert or returns an empty string, the client MUST call `.name(namehash('
.addr.reverse'))`. If this method returns a valid ENS name, the client MUST: +If a resolver is returned for the reverse record, but calling `text` causes a revert or returns an empty string, the client MUST call `.name(namehash('<address>.addr.reverse'))`. If this method returns a valid ENS name, the client MUST: 1. Validate that the reverse record is valid, by resolving the returned name and calling `addr` on the resolver, checking it matches the original Ethereum address. 2. Perform the process described under 'ENS Name' to look for a valid avatar URI on the name.