Merge pull request #4299 from ethereum/fixremap

remove empty lines from remappings
pull/4300/head
yann300 12 months ago committed by GitHub
commit 790861de14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      libs/remix-ui/solidity-compiler/src/lib/logic/compileTabLogic.ts

@ -111,10 +111,10 @@ export class CompileTabLogic {
this.event.emit('removeAnnotations')
this.event.emit('startingCompilation')
if(await this.api.fileExists('remappings.txt')) {
this.api.readFile('remappings.txt').then( remappings => {
this.compiler.set('remappings', remappings.split('\n'))
this.api.readFile('remappings.txt').then(remappings => {
this.compiler.set('remappings', remappings.split('\n').filter(Boolean))
})
}
} else this.compiler.set('remappings', [])
if (this.configFilePath) {
this.api.readFile(this.configFilePath).then( contentConfig => {
this.compiler.set('configFileContent', contentConfig)

Loading…
Cancel
Save