pull/4896/head
yann300 5 months ago committed by Aniket
parent 73cec50b58
commit 5338614f93
  1. 5
      libs/remixd/src/services/foundryClient.ts

@ -116,7 +116,7 @@ export class FoundryClient extends PluginClient {
contracts: {},
sources: {}
},
inputSources: { sources: {}, target: ''},
inputSources: { sources: {}, target: '' },
solcVersion: null,
compilationTarget: null
}
@ -172,7 +172,7 @@ export class FoundryClient extends PluginClient {
const contractName = basename(path).replace('.json', '')
let sourcePath = ''
for (let key in contentJSON.metadata.settings.compilationTarget) {
for (const key in contentJSON.metadata.settings.compilationTarget) {
if (contentJSON.metadata.settings.compilationTarget[key] === contractName) {
sourcePath = key
break
@ -206,7 +206,6 @@ export class FoundryClient extends PluginClient {
console.log('\x1b[32m%s\x1b[0m', 'sources input not found, please update Foundry to the latest version.')
}
compilationResultPart.compilationTarget = sourcePath
// extract data
if (!compilationResultPart.output['sources'][sourcePath]) compilationResultPart.output['sources'][sourcePath] = {}

Loading…
Cancel
Save