From 48cdb3ff654f2aefb3e0af44780bcdd8859d400a Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 24 Jul 2018 15:14:23 +0200 Subject: [PATCH] fix path --- src/app/files/compiler-metadata.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/files/compiler-metadata.js b/src/app/files/compiler-metadata.js index 84d4bd5f31..fe759c19a3 100644 --- a/src/app/files/compiler-metadata.js +++ b/src/app/files/compiler-metadata.js @@ -15,7 +15,7 @@ class CompilerMetadata { var path = self._opts.fileManager.currentPath() if (provider && path) { self._opts.compiler.visitContracts((contract) => { - var fileName = path + contract.name + '.json' + var fileName = path + '/' + contract.name + '.json' provider.get(fileName, (error, content) => { if (!error) { content = content || '{}' @@ -50,7 +50,7 @@ class CompilerMetadata { var provider = self._opts.fileManager.currentFileProvider() var path = self._opts.fileManager.currentPath() if (provider && path) { - var fileName = path + contractName + '.json' + var fileName = path + '/' + contractName + '.json' provider.get(fileName, (error, content) => { if (error) return callback(error) try {