pull/2112/head
aniket-engg 3 years ago committed by Aniket
parent 9cc0705b19
commit 5da0623ca7
  1. 7
      libs/remix-solidity/src/compiler/compiler.ts

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

Loading…
Cancel
Save