Skip to content

Commit

Permalink
Don't create two separate new CompilerAbstracts
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzdogan committed Jun 14, 2024
1 parent a148a7f commit fcc0275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/remix-core-plugin/src/lib/compiler-artefacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export class CompilerArtefacts extends Plugin {

onActivation() {
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.compilersArtefacts.__last = this.compilersArtefactsPerFile[file]
}

this.on('solidity', 'compilationFinished', saveCompilationResult)
Expand Down

0 comments on commit fcc0275

Please sign in to comment.