From 41707f3b9a34cea407862821957b4869c0c09279 Mon Sep 17 00:00:00 2001 From: Giuseppe Bertone Date: Tue, 28 Aug 2018 13:36:22 +0200 Subject: [PATCH] Fixed misleading var name (#1357) In the example addr function returns an address, not an hash --- EIPS/eip-137.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EIPS/eip-137.md b/EIPS/eip-137.md index 0dec0340..1f9d8e87 100644 --- a/EIPS/eip-137.md +++ b/EIPS/eip-137.md @@ -61,7 +61,7 @@ var resolver = ens.resolver(node); Then, ask the resolver for the address for the contract: ``` -var hash = resolver.addr(node); +var address = resolver.addr(node); ``` Because the `namehash` procedure depends only on the name itself, this can be precomputed and inserted into a contract, removing the need for string manipulation, and permitting O(1) lookup of ENS records regardless of the number of components in the raw name.