run tab listen on yulp

pull/11/head
yann300 5 years ago committed by ioedeveloper
parent be430aedc3
commit ee590e2aff
  1. 4
      apps/remix-ide/src/app/compiler/compiler-artefacts.js
  2. 1
      apps/remix-ide/src/app/compiler/compiler-helpers.js
  3. 3
      apps/remix-ide/src/app/tabs/runTab/model/dropdownlogic.js

@ -32,6 +32,10 @@ module.exports = class CompilerArtefacts extends Plugin {
this.on('lexon', 'compilationFinished', (file, source, languageVersion, data) => { this.on('lexon', 'compilationFinished', (file, source, languageVersion, data) => {
this.compilersArtefacts['__last'] = new CompilerAbstract(languageVersion, data, source) this.compilersArtefacts['__last'] = new CompilerAbstract(languageVersion, data, source)
}) })
this.on('yupl', 'compilationFinished', (file, source, languageVersion, data) => {
this.compilersArtefacts['__last'] = new CompilerAbstract(languageVersion, data, source)
})
} }
addResolvedContract (address, compilerData) { addResolvedContract (address, compilerData) {

@ -12,7 +12,6 @@ export const compile = async (compilationTargets, settings) => {
compiler.set('language', settings.language) compiler.set('language', settings.language)
compiler.loadVersion(canUseWorker(settings.version), urlFromVersion(settings.version)) compiler.loadVersion(canUseWorker(settings.version), urlFromVersion(settings.version))
compiler.event.register('compilationFinished', (success, compilationData, source) => { compiler.event.register('compilationFinished', (success, compilationData, source) => {
console.log(success, compilationData)
if (!success) return reject(compilationData) if (!success) return reject(compilationData)
resolve(new CompilerAbstract(settings.version, compilationData, source)) resolve(new CompilerAbstract(settings.version, compilationData, source))
}) })

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

Loading…
Cancel
Save