mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-19 11:50:56 +00:00
Fix profile command (rebase issue)
This commit is contained in:
parent
18253886fb
commit
eb86bd7fbf
@ -51,7 +51,6 @@ class Profiler {
|
|||||||
|
|
||||||
this.profileJSON(contractName, (err, profileObj) => {
|
this.profileJSON(contractName, (err, profileObj) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
self.logger.error(JSON.stringify(err));
|
|
||||||
return returnCb(err);
|
return returnCb(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,12 +76,7 @@ class Profiler {
|
|||||||
return {
|
return {
|
||||||
match: () => cmdName === 'profile',
|
match: () => cmdName === 'profile',
|
||||||
process: (callback) => {
|
process: (callback) => {
|
||||||
self.events.request('contracts:contract', contractName, (contract) => {
|
this.profile(contractName, callback);
|
||||||
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);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user