mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 22:34:24 +00:00
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];
|
let contractName = cmd.split(' ')[1];
|
||||||
if (cmdName === 'profile') {
|
if (cmdName === 'profile') {
|
||||||
self.events.request('contracts:contract', contractName, (contract) => {
|
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");
|
self.logger.info("-- couldn't profile " + contractName + " - it's not deployed or could be an interface");
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user