cleanup
This commit is contained in:
parent
4fcfc6c142
commit
a0fca8950d
|
@ -47,7 +47,6 @@ class DeployManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
self.web3.eth.getAccounts(function(err, _accounts) {
|
self.web3.eth.getAccounts(function(err, _accounts) {
|
||||||
//if (err || !self.web3.currentProvider.connected) {
|
|
||||||
if (err) {
|
if (err) {
|
||||||
self.logger.error(("Couldn't connect to an Ethereum node are you sure it's on?").red);
|
self.logger.error(("Couldn't connect to an Ethereum node are you sure it's on?").red);
|
||||||
self.logger.info("make sure you have an Ethereum node or simulator running. e.g 'embark blockchain'".magenta);
|
self.logger.info("make sure you have an Ethereum node or simulator running. e.g 'embark blockchain'".magenta);
|
||||||
|
@ -55,26 +54,6 @@ class DeployManager {
|
||||||
}
|
}
|
||||||
return callback(null, contractsManager, self.web3);
|
return callback(null, contractsManager, self.web3);
|
||||||
});
|
});
|
||||||
|
|
||||||
//// //f (self.web3.currentProvider.isConnected !== undefined && !self.web3.isConnected()) {
|
|
||||||
//// console.dir('----------------');
|
|
||||||
//// console.dir(self.web3.currentProvider);
|
|
||||||
//// console.dir('----------------');
|
|
||||||
//// if (self.web3.currentProvider !== undefined && !self.web3.currentProvider.connected) {
|
|
||||||
//// self.logger.error(("Couldn't connect to an Ethereum node are you sure it's on?").red);
|
|
||||||
//// self.logger.info("make sure you have an Ethereum node or simulator running. e.g 'embark blockchain'".magenta);
|
|
||||||
//// return callback(Error("error connecting to blockchain node"));
|
|
||||||
//// }
|
|
||||||
//// //if (self.web3.currentProvider.isConnected === undefined) {
|
|
||||||
//// // self.web3.version.getNode(function (err, _version) {
|
|
||||||
//// // if (err) {
|
|
||||||
//// // return callback(Error("error connecting to blockchain node"));
|
|
||||||
//// // }
|
|
||||||
//// // return callback(null, contractsManager, self.web3);
|
|
||||||
//// // });
|
|
||||||
//// //} else {
|
|
||||||
//// return callback(null, contractsManager, self.web3);
|
|
||||||
//// //}
|
|
||||||
},
|
},
|
||||||
function setDefaultAccount(contractsManager, web3, callback) {
|
function setDefaultAccount(contractsManager, web3, callback) {
|
||||||
web3.eth.getAccounts(function (err, accounts) {
|
web3.eth.getAccounts(function (err, accounts) {
|
||||||
|
|
Loading…
Reference in New Issue