From 8136759bbb46855bfe98b73d22fcea521e6fcf05 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 26 Jul 2018 13:15:20 -0400 Subject: [PATCH] refactor blockchain check --- lib/modules/deployment/index.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/modules/deployment/index.js b/lib/modules/deployment/index.js index 2772b984e..bb3390f01 100644 --- a/lib/modules/deployment/index.js +++ b/lib/modules/deployment/index.js @@ -86,15 +86,12 @@ class DeployManager { return callback(); }, - //// TODO: could be implemented as an event (beforeDeployAll) - //function checkIsConnectedToBlockchain(callback) { - // callback(); - // //self.blockchain.onReady(() => { - // // self.blockchain.assertNodeConnection((err) => { - // // callback(err); - // // }); - // //}); - //}, + // TODO: could be implemented as an event (beforeDeployAll) + function checkIsConnectedToBlockchain(callback) { + self.blockchain.onReady((err) => { + callback(err); + }); + }, // TODO: this can be done on the fly or as part of the initialization function determineDefaultAccount(callback) {