From 230859e986ae98c9ff0aea0b75ba3ce5cae412f5 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 27 Apr 2020 08:24:37 +0200 Subject: [PATCH] path contain the networkname --- src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js b/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js index c9313fc026..07b2fc2007 100644 --- a/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js +++ b/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js @@ -84,7 +84,7 @@ export default class FetchAndCompile extends Plugin { } // set the solidity contract code using metadata - await this.call('fileManager', 'setFile', `${targetPath}/${contractAddress}/metadata.json`, JSON.stringify(data.metadata, null, '\t')) + await this.call('fileManager', 'setFile', `${targetPath}/${name}/${contractAddress}/metadata.json`, JSON.stringify(data.metadata, null, '\t')) let compilationTargets = {} for (let file in data.metadata.sources) { const urls = data.metadata.sources[file].urls