|
|
|
@ -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] = {} |
|
|
|
|