Merge pull request #1385 from ethereum/compiler-import-fix

compiler import issue fixed
pull/7/head
yann300 5 years ago committed by GitHub
commit a16d13e38e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      remix-solidity/src/compiler/compiler.ts

@ -133,7 +133,7 @@ export class Compiler {
const checkIfFatalError = (error: CompilationError) => {
// 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 (data.error) checkIfFatalError(data.error)

Loading…
Cancel
Save