add missing promise returns
This commit is contained in:
parent
32a9b25fe3
commit
ee460e3309
|
@ -272,7 +272,7 @@ __embarkENS.resolve = function(name) {
|
||||||
|
|
||||||
let node = namehash.hash(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);
|
let resolverContract = new web3.eth.Contract(self.resolverInterface, resolverAddress);
|
||||||
return resolverContract.methods.addr(node).call();
|
return resolverContract.methods.addr(node).call();
|
||||||
}).then((addr) => {
|
}).then((addr) => {
|
||||||
|
@ -289,7 +289,7 @@ __embarkENS.lookup = function(address) {
|
||||||
|
|
||||||
let node = namehash.hash(address.toLowerCase() + ".addr.reverse");
|
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);
|
let resolverContract = new web3.eth.Contract(self.resolverInterface, resolverAddress);
|
||||||
return resolverContract.methods.name(node).call();
|
return resolverContract.methods.name(node).call();
|
||||||
}).then((name) => {
|
}).then((name) => {
|
||||||
|
|
Loading…
Reference in New Issue