Merge branch 'gastimation' of github.com:embark-framework/embark into gastimation
This commit is contained in:
commit
3ede75ce50
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue