pull/4896/head
yann300 5 months ago committed by Aniket
parent 88b5bc3e87
commit ffb9d210e5
  1. 4
      libs/remixd/src/services/foundryClient.ts

@ -171,13 +171,15 @@ export class FoundryClient extends PluginClient {
const contractName = basename(path).replace('.json', '')
let sourcePath = ''
console.log('feedContractArtifactFile', contentJSON)
if (contentJSON?.metadata?.settings?.compilationTarget) {
for (const key in contentJSON.metadata.settings.compilationTarget) {
if (contentJSON.metadata.settings.compilationTarget[key] === contractName) {
sourcePath = key
break
}
}
}
if (!sourcePath) return
const currentCache = cache.files[sourcePath]

Loading…
Cancel
Save