diff --git a/lib/modules/ens/contracts/ResolverInterface.sol b/lib/modules/ens/contracts/ResolverInterface.sol deleted file mode 100644 index 006bf201..00000000 --- a/lib/modules/ens/contracts/ResolverInterface.sol +++ /dev/null @@ -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); -} diff --git a/lib/modules/ens/embarkjs.js b/lib/modules/ens/embarkjs.js index 7e71ea8c..0ed09e55 100644 --- a/lib/modules/ens/embarkjs.js +++ b/lib/modules/ens/embarkjs.js @@ -214,8 +214,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); }; diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index 9cca1345..585c34bb 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -20,7 +20,7 @@ class ENS { address: contract.deployedAddress }; self.addSetProvider(config); - return cb(); + cb(); }); }); }