Merge pull request #652 from ethereum/listenToOptimis

Listen to the optimism compiler
pull/656/head
yann300 4 years ago committed by GitHub
commit 4e529855fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      apps/remix-ide/src/app/compiler/compiler-artefacts.js
  2. 3
      apps/remix-ide/src/app/tabs/runTab/model/dropdownlogic.js

@ -46,6 +46,11 @@ module.exports = class CompilerArtefacts extends Plugin {
this.compilersArtefacts.__last = new CompilerAbstract(languageVersion, data, source)
saveCompilationPerFileResult(file, source, languageVersion, data)
})
this.on('optimism-compiler', 'compilationFinished', (file, source, languageVersion, data) => {
this.compilersArtefacts.__last = new CompilerAbstract(languageVersion, data, source)
saveCompilationPerFileResult(file, source, languageVersion, data)
})
}
getAllContractDatas () {

@ -37,6 +37,9 @@ class DropdownLogic {
this.runView.on('yulp', 'compilationFinished', (file, source, languageVersion, data) =>
broadcastCompilationResult(file, source, languageVersion, data)
)
this.runView.on('optimism-compiler', 'compilationFinished', (file, source, languageVersion, data) =>
broadcastCompilationResult(file, source, languageVersion, data)
)
}
loadContractFromAddress (address, confirmCb, cb) {

Loading…
Cancel
Save