mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
callback fixes and get rid of resolver interface
Signed-off-by: VoR0220 <catalanor0220@gmail.com>
This commit is contained in:
parent
800269d97b
commit
ca5a60b5f0
@ -1,10 +0,0 @@
|
||||
pragma solidity ^0.4.18;
|
||||
|
||||
contract ResolverInterface {
|
||||
function PublicResolver(address ensAddr) public;
|
||||
function setAddr(bytes32 node, address addr) public;
|
||||
function setHash(bytes32 node, bytes32 hash) public;
|
||||
function addr(bytes32 node) public view returns (address);
|
||||
function hash(bytes32 node) public view returns (bytes32);
|
||||
function supportsInterface(bytes4 interfaceID) public pure returns (bool);
|
||||
}
|
@ -188,8 +188,8 @@ __embarkENS.lookup = function (address, cb) {
|
||||
return resolverContract.methods.name(node).call();
|
||||
}).then((name) => {
|
||||
if (name === "" || name === undefined) {
|
||||
cb(new Error("Name not found"), null);
|
||||
return cb(new Error("Name not found"));
|
||||
}
|
||||
cb(null, name);
|
||||
}).catch(err => cb(err));
|
||||
return cb(null, name);
|
||||
}).catch(cb);
|
||||
};
|
||||
|
@ -20,7 +20,7 @@ class ENS {
|
||||
address: contract.deployedAddress
|
||||
};
|
||||
self.addSetProvider(config);
|
||||
return cb();
|
||||
cb();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user