From 15d457bf60b64012b092571834652aa7869a04fd Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 22 Jun 2018 09:41:53 -0400 Subject: [PATCH] Fix for skip-undeployed is not specified --- lib/cmds/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmds/graph.js b/lib/cmds/graph.js index 8ae2eda57..ba45743a8 100644 --- a/lib/cmds/graph.js +++ b/lib/cmds/graph.js @@ -82,7 +82,7 @@ class GraphGenerator { let contractDependencies = Array.from(new Set(this.engine.contractsManager.contractDependencies[c])); contractDependencies.forEach((d) => { 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`; } }