From ee460e3309309f0de20fb103397258796dfd82f1 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 28 May 2018 11:42:01 -0400 Subject: [PATCH] add missing promise returns --- lib/modules/ens/embarkjs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/ens/embarkjs.js b/lib/modules/ens/embarkjs.js index 9ac7d3d8d..78543c35e 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) => {