pull/5370/head
aniket-engg 3 years ago committed by Aniket
parent d18dcb9010
commit 5c9b0dfaf9
  1. 7
      libs/remix-solidity/src/compiler/compiler.ts

@ -9,7 +9,8 @@ import {
Source, SourceWithTarget, MessageFromWorker, CompilerState, CompilationResult,
visitContractsCallbackParam, visitContractsCallbackInterface, CompilationError,
gatherImportsCallbackInterface,
isFunctionDescription
isFunctionDescription,
CompilerInput
} from './types'
/*
@ -134,7 +135,7 @@ export class Compiler {
* @param source Source
*/
onCompilationFinished (data: CompilationResult, missingInputs?: string[], source?: SourceWithTarget, input?, version?): void {
onCompilationFinished (data: CompilationResult, missingInputs?: string[], source?: SourceWithTarget, input?: string, version?: string): void {
let noFatalErrors = true // ie warnings are ok
const checkIfFatalError = (error: CompilationError) => {
@ -183,7 +184,7 @@ export class Compiler {
return { error: 'Deferred import' }
}
let result: CompilationResult = {}
let input
let input: string
try {
if (source && source.sources) {
const { optimize, runs, evmVersion, language } = this.state

Loading…
Cancel
Save