diff --git a/libs/remix-solidity/src/compiler/compiler.ts b/libs/remix-solidity/src/compiler/compiler.ts index 1a5886537f..4cbd963d8b 100644 --- a/libs/remix-solidity/src/compiler/compiler.ts +++ b/libs/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.includes('Deferred import')) ? false : error.severity !== 'warning' + const isValidError = (error.message && error.message=== 'Deferred import') ? false : error.severity !== 'warning' if(isValidError) noFatalErrors = false } if (data.error) checkIfFatalError(data.error) diff --git a/libs/remix-tests/src/run.ts b/libs/remix-tests/src/run.ts index 97262f89cb..7422ee2a43 100644 --- a/libs/remix-tests/src/run.ts +++ b/libs/remix-tests/src/run.ts @@ -20,7 +20,7 @@ function mapVerbosity (v: number) { } return levels[v] } -const version = require('../../../package.json').version +const version = require('../package.json').version commander.version(version)