|
|
@ -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 { |
|
|
|