mirror of https://github.com/status-im/EIPs.git
Merge pull request #631 from Arachnid/master
EIP 137: Add warning for implementers against treating 0 like other addresses
This commit is contained in:
commit
384ca913cf
|
@ -179,6 +179,7 @@ The following interfaces are defined:
|
||||||
| `pubkey` | 0xc8690233 | #619 |
|
| `pubkey` | 0xc8690233 | #619 |
|
||||||
|
|
||||||
EIPs may define new interfaces to be added to this registry.
|
EIPs may define new interfaces to be added to this registry.
|
||||||
|
|
||||||
### <a name="addr"></a>Contract Address Interface
|
### <a name="addr"></a>Contract Address Interface
|
||||||
|
|
||||||
Resolvers wishing to support contract address resources must provide the following function:
|
Resolvers wishing to support contract address resources must provide the following function:
|
||||||
|
@ -189,6 +190,8 @@ function addr(bytes32 node) constant returns (address);
|
||||||
|
|
||||||
If the resolver supports `addr` lookups but the requested node does not have a record, the resolver MUST return the zero address.
|
If the resolver supports `addr` lookups but the requested node does not have a record, the resolver MUST return the zero address.
|
||||||
|
|
||||||
|
Clients resolving the `addr` record MUST check for a zero return value, and treat this in the same manner as a name that does not have a resolver specified - that is, refuse to send funds to or interact with the address. Failure to do this can result in users accidentally sending funds to the 0 address.
|
||||||
|
|
||||||
Changes to an address MUST trigger the following event:
|
Changes to an address MUST trigger the following event:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue