Merge pull request #759 from embark-framework/bug_fix/ens-crash

Don't crash if ENS contracts don't deploy
This commit is contained in:
Iuri Matias 2018-08-31 09:05:43 -04:00 committed by GitHub
commit 43945f6a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@ class ENS {
});
}
], (err, results) => {
if (err) {
return cb(err);
}
if (!results[0] || !results[1] || !results[2]) {
return cb(__('Aborting ENS setup as some of the contracts did not deploy properly'));
}
// result[0] => ENSRegistry; result[1] => FIFSRegistrar; result[2] => FIFSRegistrar
let config = {
env: self.env,