compiler import issue fixed

pull/7/head
aniket-engg 5 years ago
parent 807ffd9772
commit 3e474918c4
  1. 2
      remix-solidity/src/compiler/compiler.ts

@ -133,7 +133,7 @@ export class Compiler {
const checkIfFatalError = (error: CompilationError) => { const checkIfFatalError = (error: CompilationError) => {
// Ignore warnings and the 'Deferred import' error as those are generated by us as a workaround // Ignore warnings and the 'Deferred import' error as those are generated by us as a workaround
const isValidError = (error.message && error.message === 'Deferred import') ? false : error.severity !== 'warning' const isValidError = (error.message && error.message.includes('Deferred import')) ? false : error.severity !== 'warning'
if(isValidError) noFatalErrors = false if(isValidError) noFatalErrors = false
} }
if (data.error) checkIfFatalError(data.error) if (data.error) checkIfFatalError(data.error)

Loading…
Cancel
Save