Prevent embark to crash when there is no config for ens

This commit is contained in:
Anthony Laibe 2018-09-12 12:05:31 +01:00
parent 8304657dc1
commit 1ce8474824

View File

@ -33,7 +33,7 @@ class ENS {
this.events.setCommandHandler("storage:ens:associate", this.associateStorageToEns.bind(this)); this.events.setCommandHandler("storage:ens:associate", this.associateStorageToEns.bind(this));
} }
setProviderAndRegisterDomains(cb) { setProviderAndRegisterDomains(cb = () => {}) {
const self = this; const self = this;
async.parallel([ async.parallel([
function getENSRegistry(paraCb) { function getENSRegistry(paraCb) {