@ -27,7 +27,6 @@ export class ContractFlattener extends Plugin {
}
async flattenAContract(action: customAction) {
this.call('manager', 'deactivatePlugin', 'solidityumlgen')
await this.call('solidity', 'compile', action.path[0])
@ -75,6 +75,7 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen {
this.themeName = currentTheme.name
let result = ''
try {
console.log({ data })
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)
@ -170,7 +170,6 @@ function _resolvePathArray(parts) {
export function normalizeContractPath(contractPath: string): string {
console.log('contractPath', contractPath)
let paths = contractPath.split('/')
let filename = paths[paths.length - 1].split('.')[0]
let folders = ''