mirror of https://github.com/embarklabs/embark.git
Merge pull request #639 from embark-framework/bugfix/profile-command
Fix profile command
This commit is contained in:
commit
b89211bd45
|
@ -55,7 +55,7 @@ class Profiler {
|
|||
let contractName = cmd.split(' ')[1];
|
||||
if (cmdName === 'profile') {
|
||||
self.events.request('contracts:contract', contractName, (contract) => {
|
||||
if (!contract.deployedAddress) {
|
||||
if (!contract || !contract.deployedAddress) {
|
||||
self.logger.info("-- couldn't profile " + contractName + " - it's not deployed or could be an interface");
|
||||
return "";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue