refactor flattenContract to be a void method

pull/3395/head
Joseph Izang 2 years ago
parent c9b10ab620
commit 33f862f03f
  1. 3
      apps/remix-ide/src/app/plugins/contractFlattener.tsx

@ -36,7 +36,7 @@ export class ContractFlattener extends Plugin {
* Takes currently compiled contract that has a bunch of imports at the top
* and flattens them ready for UML creation. Takes the flattened result
* and assigns to a local property
* @returns {Promise<string>}
* @returns {Promise<void>}
*/
async flattenContract (source: any, filePath: string, data: any) {
const ast = data.sources
@ -48,6 +48,5 @@ export class ContractFlattener extends Plugin {
const result = concatSourceFiles(sorted, sources)
await this.call('fileManager', 'writeFile', `${filePath}_flattened.sol`, result)
_paq.push(['trackEvent', 'plugin', 'contractFlattener', 'flattenAContract'])
return result
}
}
Loading…
Cancel
Save