Fix profile command (rebase issue)

This commit is contained in:
Anthony Laibe 2018-08-31 11:07:07 +01:00 committed by Pascal Precht
parent 18253886fb
commit eb86bd7fbf
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 7 deletions

View File

@ -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);
}
};
});