From eb86bd7fbf12b414cd52a57d1f05ca64c3f75ff0 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 31 Aug 2018 11:07:07 +0100 Subject: [PATCH] Fix profile command (rebase issue) --- lib/modules/profiler/index.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/modules/profiler/index.js b/lib/modules/profiler/index.js index 5e35fb76..ba622b65 100644 --- a/lib/modules/profiler/index.js +++ b/lib/modules/profiler/index.js @@ -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); } }; });