Fix: Relationship was incorrect

This commit is contained in:
Richard Ramos 2018-03-23 11:39:42 -04:00
parent 58b5ea329e
commit 0326890abe
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class GraphGenerator {
others = 'fontcolor="#c3c3c3", color="#a0a0a0"';
tooltip += " (not deployed)";
}
contractString += `${id}[label = "{${contractLabel}}", tooltip="${tooltip}", fillcolor=gray95, ${others}]\n`;
}
@ -77,7 +77,7 @@ class GraphGenerator {
let contractDependencies = Array.from(new Set(this.engine.contractsManager.contractDependencies[c]));
contractDependencies.forEach(function(d){
if(idMapping[c] !== undefined && idMapping[d] !== undefined){
relationshipString += `${idMapping[d]}->${idMapping[c]}[constraint=true, arrowtail=diamond, tooltip="${d} uses ${c}"]\n`;
relationshipString += `${idMapping[d]}->${idMapping[c]}[constraint=true, arrowtail=diamond, tooltip="${c} uses ${d}"]\n`;
}
});
}