mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 13:36:14 +00:00
refactor blockchain check
This commit is contained in:
parent
eda188b01e
commit
72e43f3457
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user