Don't create two separate new CompilerAbstracts

pull/5285/head
Kaan Uzdoğan 5 months ago committed by Aniket
parent eadfe0d4f1
commit cb65ac81b1
  1. 2
      libs/remix-core-plugin/src/lib/compiler-artefacts.ts

@ -34,8 +34,8 @@ export class CompilerArtefacts extends Plugin {
onActivation() { onActivation() {
const saveCompilationResult = (file, source, languageVersion, data, input?) => { const saveCompilationResult = (file, source, languageVersion, data, input?) => {
this.compilersArtefacts.__last = new CompilerAbstract(languageVersion, data, source, input)
this.compilersArtefactsPerFile[file] = new CompilerAbstract(languageVersion, data, source, input) this.compilersArtefactsPerFile[file] = new CompilerAbstract(languageVersion, data, source, input)
this.compilersArtefacts.__last = this.compilersArtefactsPerFile[file]
} }
this.on('solidity', 'compilationFinished', saveCompilationResult) this.on('solidity', 'compilationFinished', saveCompilationResult)

Loading…
Cancel
Save