mirror of https://github.com/embarklabs/embark.git
refactor blockchain check
This commit is contained in:
parent
4e04f78eaa
commit
3f82d7140e
|
@ -85,15 +85,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) {
|
||||
|
|
Loading…
Reference in New Issue