From 33a7749adebbcf8bd161d9ee8dd8118ffa8ff462 Mon Sep 17 00:00:00 2001 From: Jeff Lau Date: Wed, 29 May 2024 08:44:54 +0800 Subject: [PATCH] Update 11.mdx (#234) Co-authored-by: Luc --- docs/ensip/11.mdx | 2 +- docs/ensip/12.mdx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ensip/11.mdx b/docs/ensip/11.mdx index 03de27309..cd1edf7b4 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) =>{ diff --git a/docs/ensip/12.mdx b/docs/ensip/12.mdx index 216763ec8..ceda5695a 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.