From f5be9d74fbb62ddc05b141b607a6ebd1fa523bad Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Fri, 20 Jan 2023 23:15:55 +0100 Subject: [PATCH] generate uml svg. persist flattened contract and svg to file explorer --- libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx index ccb54e2d80..0049fd5c0a 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx @@ -239,11 +239,13 @@ export const ContractSelection = (props: ContractSelectionProps) => { const flattenContract = () => { const filePath = api.getCompilationResult().source.target const ast = api.getCompilationResult().data.sources + console.log({ ast }) const dependencyGraph = getDependencyGraph(ast, filePath) const sorted = dependencyGraph.isEmpty() ? [filePath] : dependencyGraph.sort().reverse() const sources = api.getCompilationResult().source.sources + console.log({ sources }) const result = concatSourceFiles(sorted, sources) api.writeFile(`${api.currentFile}_flattened.sol`, result) setContentForAST(result)