Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
a386b4c9
Commit
a386b4c9
authored
Aug 31, 2016
by
Nick Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts/ens: Replace setOwner with setSubnodeOwner in accordance with EIP137
parent
1f58b2d0
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
5 deletions
+26
-5
ens.go
contracts/ens/contract/ens.go
+24
-3
ens.sol
contracts/ens/contract/ens.sol
+2
-2
No files found.
contracts/ens/contract/ens.go
View file @
a386b4c9
This diff is collapsed.
Click to expand it.
contracts/ens/contract/ens.sol
View file @
a386b4c9
...
@@ -72,7 +72,7 @@ contract ENS {
...
@@ -72,7 +72,7 @@ contract ENS {
* @param label The hash of the label specifying the subnode.
* @param label The hash of the label specifying the subnode.
* @param owner The address of the new owner.
* @param owner The address of the new owner.
*/
*/
function setOwner(bytes32 node, bytes32 label, address owner) only_owner(node) {
function set
Subnode
Owner(bytes32 node, bytes32 label, address owner) only_owner(node) {
var subnode = sha3(node, label);
var subnode = sha3(node, label);
NewOwner(node, label, owner);
NewOwner(node, label, owner);
records[subnode].owner = owner;
records[subnode].owner = owner;
...
@@ -122,7 +122,7 @@ contract FIFSRegistrar {
...
@@ -122,7 +122,7 @@ contract FIFSRegistrar {
throw;
throw;
// Temporarily set ourselves as the owner
// Temporarily set ourselves as the owner
ens.setOwner(rootNode, subnode, this);
ens.set
Subnode
Owner(rootNode, subnode, this);
// Set up the default resolver
// Set up the default resolver
ens.setResolver(node, defaultResolver);
ens.setResolver(node, defaultResolver);
// Set the owner to the real owner
// Set the owner to the real owner
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment