mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
very wip working register
This commit is contained in:
parent
f4a2ad7568
commit
d0e14096c3
@ -32,6 +32,11 @@ contract FIFSRegistrar {
|
||||
* @param subnode The hash of the label to register.
|
||||
* @param owner The address of the new owner.
|
||||
*/
|
||||
/*
|
||||
function register(bytes32 subnode, address owner) public only_owner(subnode) {
|
||||
ens.setSubnodeOwner(rootNode, subnode, owner);
|
||||
}
|
||||
*/
|
||||
function register(bytes32 subnode, address owner) public only_owner(subnode) {
|
||||
ens.setSubnodeOwner(rootNode, subnode, owner);
|
||||
}
|
||||
|
@ -173,6 +173,7 @@ __embarkENS.setProvider = function (config) {
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.message.indexOf('Provider not set or invalid') > -1) {
|
||||
console.log('PROVIDER NOT SET');
|
||||
console.warn(ERROR_MESSAGE);
|
||||
return;
|
||||
}
|
||||
@ -191,6 +192,7 @@ __embarkENS.resolve = function (name, callback) {
|
||||
}
|
||||
|
||||
let node = namehash.hash(name);
|
||||
console.log('NODE TO RESOLVE', node);
|
||||
|
||||
function cb(err, addr) {
|
||||
if (err === NoDecodeAddrError) {
|
||||
|
@ -330,7 +330,7 @@ class ENS {
|
||||
"FIFSRegistrar": {
|
||||
"deploy": true,
|
||||
"args": ["$ENSRegistry", rootNode],
|
||||
"onDeploy": ["ENSRegistry.methods.setOwner(0, FIFSRegistrar.options.address).send()"]
|
||||
"onDeploy": ["ENSRegistry.methods.setOwner('"+rootNode+"', web3.eth.defaultAccount).send()"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user