mirror of
https://github.com/status-im/EIPs.git
synced 2025-01-14 08:54:44 +00:00
Fixed misleading var name (#1357)
In the example addr function returns an address, not an hash
This commit is contained in:
parent
0469efa837
commit
41707f3b9a
@ -61,7 +61,7 @@ var resolver = ens.resolver(node);
|
|||||||
Then, ask the resolver for the address for the contract:
|
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.
|
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user