Commit 5a0f6714 authored by aniket-engg's avatar aniket-engg Committed by Aniket

target fix

parent 355a02ea
...@@ -26,6 +26,7 @@ export class Compiler { ...@@ -26,6 +26,7 @@ export class Compiler {
evmVersion: null, evmVersion: null,
language: 'Solidity', language: 'Solidity',
compilationStartTime: null, compilationStartTime: null,
target: null,
lastCompilationResult: { lastCompilationResult: {
data: null, data: null,
source: null source: null
...@@ -79,7 +80,7 @@ export class Compiler { ...@@ -79,7 +80,7 @@ export class Compiler {
compile (files: Source, target: string): void { compile (files: Source, target: string): void {
this.state.target = target this.state.target = target
this.event.trigger('compilationStarted', []) this.event.trigger('compilationStarted', [])
this.internalCompile(files, target) this.internalCompile(files)
} }
/** /**
...@@ -141,7 +142,7 @@ export class Compiler { ...@@ -141,7 +142,7 @@ export class Compiler {
// There are fatal errors, abort here // There are fatal errors, abort here
this.state.lastCompilationResult = null this.state.lastCompilationResult = null
this.event.trigger('compilationFinished', [false, data, source]) this.event.trigger('compilationFinished', [false, data, source])
} else if (missingInputs !== undefined && missingInputs.length > 0) { } else if (missingInputs !== undefined && missingInputs.length > 0 && source && source.sources) {
// try compiling again with the new set of inputs // try compiling again with the new set of inputs
this.internalCompile(source.sources, missingInputs) this.internalCompile(source.sources, missingInputs)
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment