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) => {
|
||||
if (err) {
|
||||
self.logger.error(JSON.stringify(err));
|
||||
return returnCb(err);
|
||||
}
|
||||
|
||||
|
@ -77,12 +76,7 @@ class Profiler {
|
|||
return {
|
||||
match: () => cmdName === 'profile',
|
||||
process: (callback) => {
|
||||
self.events.request('contracts:contract', contractName, (contract) => {
|
||||
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);
|
||||
});
|
||||
this.profile(contractName, callback);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue