diff options
author | Nick Johnson <arachnid@notdot.net> | 2016-09-01 00:26:41 +0800 |
---|---|---|
committer | Nick Johnson <arachnid@notdot.net> | 2016-09-01 19:40:15 +0800 |
commit | a386b4c9837cd6c21b9581cbd94a076665961c67 (patch) | |
tree | 77d474b4306486f98c47214ced35638ae595a4c8 /contracts/ens/contract/ens.sol | |
parent | 1f58b2d084b65eaec9aa2c2ecb1d3aae50d894b3 (diff) | |
download | go-tangerine-a386b4c9837cd6c21b9581cbd94a076665961c67.tar go-tangerine-a386b4c9837cd6c21b9581cbd94a076665961c67.tar.gz go-tangerine-a386b4c9837cd6c21b9581cbd94a076665961c67.tar.bz2 go-tangerine-a386b4c9837cd6c21b9581cbd94a076665961c67.tar.lz go-tangerine-a386b4c9837cd6c21b9581cbd94a076665961c67.tar.xz go-tangerine-a386b4c9837cd6c21b9581cbd94a076665961c67.tar.zst go-tangerine-a386b4c9837cd6c21b9581cbd94a076665961c67.zip |
contracts/ens: Replace setOwner with setSubnodeOwner in accordance with EIP137
Diffstat (limited to 'contracts/ens/contract/ens.sol')
-rw-r--r-- | contracts/ens/contract/ens.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contracts/ens/contract/ens.sol b/contracts/ens/contract/ens.sol index 2edf32692..114cd7319 100644 --- a/contracts/ens/contract/ens.sol +++ b/contracts/ens/contract/ens.sol @@ -72,7 +72,7 @@ contract ENS { * @param label The hash of the label specifying the subnode. * @param owner The address of the new owner. */ - function setOwner(bytes32 node, bytes32 label, address owner) only_owner(node) { + function setSubnodeOwner(bytes32 node, bytes32 label, address owner) only_owner(node) { var subnode = sha3(node, label); NewOwner(node, label, owner); records[subnode].owner = owner; @@ -122,7 +122,7 @@ contract FIFSRegistrar { throw; // Temporarily set ourselves as the owner - ens.setOwner(rootNode, subnode, this); + ens.setSubnodeOwner(rootNode, subnode, this); // Set up the default resolver ens.setResolver(node, defaultResolver); // Set the owner to the real owner |