output as a key

pull/5370/head
aniket-engg 3 years ago committed by Aniket
parent d3ceef52ea
commit 968ef27180
  1. 3
      libs/remix-core-plugin/src/lib/compiler-metadata.ts

@ -39,7 +39,8 @@ export class CompilerMetadata extends Plugin {
const compiler = new CompilerAbstract(languageVersion, data, source)
const path = self._extractPathOf(source.target)
const outputFileName = this._OutputFileName(path, source.target)
await this.call('fileManager', 'writeFile', outputFileName, JSON.stringify(data, null, '\t'))
const buildData = { output: data }
await this.call('fileManager', 'writeFile', outputFileName, JSON.stringify(buildData, null, '\t'))
compiler.visitContracts((contract) => {
if (contract.file !== source.target) return
(async () => {

Loading…
Cancel
Save