mirror of https://github.com/embarklabs/embark.git
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);
|
||||
|
||||
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) => {
|
||||
|
|
Loading…
Reference in New Issue