From b5470cae371076906ca31e212f5ece92ba0c8903 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Wed, 21 Dec 2022 13:34:19 +0100 Subject: [PATCH] remove direct installation of solidity-parser package --- .../solidity-compiler/src/lib/compiler-container.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx index c52679838c..c4255f21ba 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx @@ -742,11 +742,11 @@ export const CompilerContainer = (props: CompilerContainerProps) => { const payload = api.getCompilationResult() const currentFile = api.currentFile const sourceCode = payload.source.sources[currentFile].content - const ast = payload.data.sources[currentFile].ast + const ast = parser.parse(sourceCode) console.log({ ast }) try { - const result = await convertAST2UmlClasses(ast, ast.absolutePath) - console.log({ result }) + // const result = await convertAST2UmlClasses(ast, currentFile) + // console.log({ result }) } catch (error) { console.log({ error }) console.log({ payload })