Fixed misleading var name (#1357)

In the example addr function returns an address, not an hash
This commit is contained in:
Giuseppe Bertone 2018-08-28 13:36:22 +02:00 committed by Nick Johnson
parent 0469efa837
commit 41707f3b9a

View File

@ -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.