Merge branch 'gastimation' of github.com:embark-framework/embark into gastimation

This commit is contained in:
VoR0220 2018-06-12 12:52:36 -05:00
commit 3ede75ce50
1 changed files with 8 additions and 4 deletions

View File

@ -53,10 +53,14 @@ class Profiler {
let cmdName = cmd.split(' ')[0];
let contractName = cmd.split(' ')[1];
if (cmdName === 'profile') {
self.events.request('contracts:contract', contractName, (contract) => {
self.logger.info("-- profile for " + contractName);
this.profile(contractName, contract);
});
self.events.request('contracts:contract', contractName, (contract) => {
if (!contract.deployedAddress) {
self.logger.info("-- couldn't profile " + contractName + " - it's not deployed or could be an interface");
return "";
}
self.logger.info("-- profile for " + contractName);
this.profile(contractName, contract);
});
return "";
}
return false;