listen to the optimism compiler

pull/652/head
yann300 4 years ago
parent fc10e77b33
commit e966a40e1e
  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