diff --git a/src/app/compiler/compiler-artefacts.js b/src/app/compiler/compiler-artefacts.js index ecc25cbe93..f0f88bb069 100644 --- a/src/app/compiler/compiler-artefacts.js +++ b/src/app/compiler/compiler-artefacts.js @@ -32,6 +32,10 @@ module.exports = class CompilerArtefacts extends Plugin { this.on('lexon', 'compilationFinished', (file, source, languageVersion, data) => { 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) { diff --git a/src/app/compiler/compiler-helpers.js b/src/app/compiler/compiler-helpers.js index c4ca22c001..d0c7e13fdd 100644 --- a/src/app/compiler/compiler-helpers.js +++ b/src/app/compiler/compiler-helpers.js @@ -12,7 +12,6 @@ export const compile = async (compilationTargets, settings) => { compiler.set('language', settings.language) compiler.loadVersion(canUseWorker(settings.version), urlFromVersion(settings.version)) compiler.event.register('compilationFinished', (success, compilationData, source) => { - console.log(success, compilationData) if (!success) return reject(compilationData) resolve(new CompilerAbstract(settings.version, compilationData, source)) }) diff --git a/src/app/tabs/runTab/model/dropdownlogic.js b/src/app/tabs/runTab/model/dropdownlogic.js index c2dc932aa1..0a42977a40 100644 --- a/src/app/tabs/runTab/model/dropdownlogic.js +++ b/src/app/tabs/runTab/model/dropdownlogic.js @@ -34,6 +34,9 @@ class DropdownLogic { this.runView.on('lexon', 'compilationFinished', (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) {