diff --git a/lib/modules/ens/embarkjs.js b/lib/modules/ens/embarkjs.js index 9ac7d3d8..78543c35 100644 --- a/lib/modules/ens/embarkjs.js +++ b/lib/modules/ens/embarkjs.js @@ -272,7 +272,7 @@ __embarkENS.resolve = function(name) { let node = namehash.hash(name); - self.ens.methods.resolver(node).call().then((resolverAddress) => { + return self.ens.methods.resolver(node).call().then((resolverAddress) => { let resolverContract = new web3.eth.Contract(self.resolverInterface, resolverAddress); return resolverContract.methods.addr(node).call(); }).then((addr) => { @@ -289,7 +289,7 @@ __embarkENS.lookup = function(address) { let node = namehash.hash(address.toLowerCase() + ".addr.reverse"); - self.ens.methods.resolver(node).call().then((resolverAddress) => { + return self.ens.methods.resolver(node).call().then((resolverAddress) => { let resolverContract = new web3.eth.Contract(self.resolverInterface, resolverAddress); return resolverContract.methods.name(node).call(); }).then((name) => {