diff --git a/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js b/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js index 0cd7dee4ca..6c2e4046f0 100644 --- a/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js +++ b/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js @@ -95,7 +95,7 @@ export default class FetchAndCompile extends Plugin { let stdUrl = `ipfs://${url.split('/')[2]}` const source = await this.call('contentImport', 'resolve', stdUrl) file = file.replace('browser/', '') // should be fixed in the remix IDE end. - const path = `${targetPath}/${contractAddress}/${file}` + const path = `${targetPath}/${name}/${contractAddress}/${file}` await this.call('fileManager', 'setFile', path, source.content) compilationTargets[path] = { content: source.content } break