fix signature

pull/5370/head
Joseph Izang 2 years ago committed by Aniket
parent 4b349c3df3
commit d106be677a
  1. 2
      apps/remix-ide/src/app/plugins/solidity-umlgen.tsx

@ -76,7 +76,7 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen {
let result = '' let result = ''
try { try {
if (data.sources && Object.keys(data.sources).length > 1) { // we should flatten first as there are multiple asts if (data.sources && Object.keys(data.sources).length > 1) { // we should flatten first as there are multiple asts
result = await this.flattenContract(source, file, data) result = await this.flattenContract(file)
} }
const ast = result.length > 1 ? parser.parse(result) : parser.parse(source.sources[file].content) const ast = result.length > 1 ? parser.parse(result) : parser.parse(source.sources[file].content)
const umlClasses = convertAST2UmlClasses(ast, this.currentFile) const umlClasses = convertAST2UmlClasses(ast, this.currentFile)

Loading…
Cancel
Save