Fix for skip-undeployed is not specified

This commit is contained in:
Richard Ramos 2018-06-22 09:41:53 -04:00
parent 9fb19ed78b
commit 15d457bf60
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class GraphGenerator {
let contractDependencies = Array.from(new Set(this.engine.contractsManager.contractDependencies[c])); let contractDependencies = Array.from(new Set(this.engine.contractsManager.contractDependencies[c]));
contractDependencies.forEach((d) => { contractDependencies.forEach((d) => {
if(idMapping[c] !== undefined && idMapping[d] !== undefined){ if(idMapping[c] !== undefined && idMapping[d] !== undefined){
if(options.skipUndeployed && this.engine.contractsManager.contracts[c].deploy && this.engine.contractsManager.contracts[d].deploy){ if((options.skipUndeployed && this.engine.contractsManager.contracts[c].deploy && this.engine.contractsManager.contracts[d].deploy) || !options.skipUndeployed){
relationshipString += `${idMapping[d]}->${idMapping[c]}[constraint=true, arrowtail=diamond, tooltip="${c} uses ${d}"]\n`; relationshipString += `${idMapping[d]}->${idMapping[c]}[constraint=true, arrowtail=diamond, tooltip="${c} uses ${d}"]\n`;
} }
} }