Skip to content

Commit

Permalink
fix parser: remappings
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Dec 6, 2023
1 parent 073cbf8 commit 8ecabd1
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ export default class CodeParserCompiler {
this.compiler.set('runs', state.runs)
this.compiler.set('useFileConfiguration', true)
this.compiler.set('compilerRetriggerMode', CompilerRetriggerMode.retrigger)

if (await this.plugin.call('fileManager', 'exists','remappings.txt')) {
const remappings = await this.plugin.call('fileManager', 'readFile','remappings.txt')
this.compiler.set('remappings', remappings.split('\n').filter(Boolean))
}

const configFileContent = {
"language": "Solidity",
"settings": {
Expand Down

0 comments on commit 8ecabd1

Please sign in to comment.