mirror of https://github.com/embarklabs/embark.git
Fix: Relationship was incorrect
This commit is contained in:
parent
58b5ea329e
commit
0326890abe
|
@ -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`;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue