Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ensips/10.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Let:

ENSIP-10-compliant ENS resolvers MAY implement the following function interface:

```
```solidity
interface ExtendedResolver {
function resolve(bytes calldata name, bytes calldata data) external view returns(bytes);
}
Expand Down Expand Up @@ -76,7 +76,7 @@ Also note that when wildcard resolution is in use (eg, `name != currentname`), c

### Pseudocode

```
```javascript
function getResolver(name) {
for(let currentname = name; currentname !== ''; currentname = parent(currentname)) {
const node = namehash(currentname);
Expand Down
6 changes: 3 additions & 3 deletions ensips/3.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ When called by account `x`, instructs the ENS registry to transfer ownership of

Allowing the caller to specify an owner other than themselves for the relevant node facilitates contracts that need accurate reverse ENS entries delegating this to their creators with a minimum of code inside their constructor:

```
```solidity
reverseRegistrar.claim(msg.sender)
```

Expand All @@ -55,7 +55,7 @@ When called by account `x`, sets the resolver for the name `hex(x) + '.addr.reve

A new resolver interface is defined, consisting of the following method:

```
```solidity
function name(bytes32 node) constant returns (string);
```

Expand All @@ -69,7 +69,7 @@ Future ENSIPs may specify more record types appropriate to reverse ENS records.

This registrar, written in Solidity, implements the specifications outlined above.

```
```solidity
pragma solidity ^0.4.10;

import "./AbstractENS.sol";
Expand Down
2 changes: 1 addition & 1 deletion ensips/4.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Encoding type 8 indicates that the ABI can be found elsewhere, at the specified

A new resolver interface is defined, consisting of the following method:

```
```solidity
function ABI(bytes32 node, uint256 contentType) constant returns (uint256, bytes);
```

Expand Down