pull/1/head
yann300 6 years ago
parent 40c995a1be
commit 1deb3279e9
  1. 4
      src/app/files/compiler-metadata.js

@ -15,7 +15,7 @@ class CompilerMetadata {
var path = self._opts.fileManager.currentPath() var path = self._opts.fileManager.currentPath()
if (provider && path) { if (provider && path) {
self._opts.compiler.visitContracts((contract) => { self._opts.compiler.visitContracts((contract) => {
var fileName = path + contract.name + '.json' var fileName = path + '/' + contract.name + '.json'
provider.get(fileName, (error, content) => { provider.get(fileName, (error, content) => {
if (!error) { if (!error) {
content = content || '{}' content = content || '{}'
@ -50,7 +50,7 @@ class CompilerMetadata {
var provider = self._opts.fileManager.currentFileProvider() var provider = self._opts.fileManager.currentFileProvider()
var path = self._opts.fileManager.currentPath() var path = self._opts.fileManager.currentPath()
if (provider && path) { if (provider && path) {
var fileName = path + contractName + '.json' var fileName = path + '/' + contractName + '.json'
provider.get(fileName, (error, content) => { provider.get(fileName, (error, content) => {
if (error) return callback(error) if (error) return callback(error)
try { try {

Loading…
Cancel
Save