add missing promise returns

This commit is contained in:
Iuri Matias 2018-05-28 11:42:01 -04:00
parent 32a9b25fe3
commit ee460e3309
1 changed files with 2 additions and 2 deletions

View File

@ -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) => {