Fix profile command (rebase issue)
This commit is contained in:
parent
18253886fb
commit
eb86bd7fbf
|
@ -51,7 +51,6 @@ class Profiler {
|
||||||
|
|
||||||
this.profileJSON(contractName, (err, profileObj) => {
|
this.profileJSON(contractName, (err, profileObj) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
self.logger.error(JSON.stringify(err));
|
|
||||||
return returnCb(err);
|
return returnCb(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,12 +76,7 @@ class Profiler {
|
||||||
return {
|
return {
|
||||||
match: () => cmdName === 'profile',
|
match: () => cmdName === 'profile',
|
||||||
process: (callback) => {
|
process: (callback) => {
|
||||||
self.events.request('contracts:contract', contractName, (contract) => {
|
this.profile(contractName, callback);
|
||||||
if (!contract || !contract.deployedAddress) {
|
|
||||||
return callback(null, "-- couldn't profile " + contractName + " - it's not deployed or could be an interface");
|
|
||||||
}
|
|
||||||
this.profile(contractName, contract, callback);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue