From ea52bfed594ac7f9fe069e60cda69254ff4f2e16 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 7 May 2019 11:50:58 +0200 Subject: [PATCH] fix listening on vyper event --- src/app/components/plugin-manager-proxy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/plugin-manager-proxy.js b/src/app/components/plugin-manager-proxy.js index 1b324718cf..e356215bd8 100644 --- a/src/app/components/plugin-manager-proxy.js +++ b/src/app/components/plugin-manager-proxy.js @@ -9,9 +9,9 @@ class PluginManagerProxy { constructor () { this.event = new EventManager() this._listeners = {} - this._listeners['vyper'] = (data) => { - registry.get('compilersartefacts').api['__last'] = new CompilerAbstract(data.language, data.result, data.content) - this.event.trigger('sendCompilationResult', [data.title, data.content, data.language, data.result]) + this._listeners['vyper'] = (file, source, languageVersion, data) => { + registry.get('compilersartefacts').api['__last'] = new CompilerAbstract(languageVersion, data, source) + this.event.trigger('sendCompilationResult', [file, source, languageVersion, data]) } this._listeners['solidity'] = (file, source, languageVersion, data) => { registry.get('compilersartefacts').api['__last'] = new CompilerAbstract(languageVersion, data, source)