|
|
@ -99,8 +99,8 @@ class CompilerMetadata extends Plugin { |
|
|
|
if (provider && path) { |
|
|
|
if (provider && path) { |
|
|
|
self.executionContext.detectNetwork((err, { id, name } = {}) => { |
|
|
|
self.executionContext.detectNetwork((err, { id, name } = {}) => { |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
|
reject(err) |
|
|
|
|
|
|
|
console.log(err) |
|
|
|
console.log(err) |
|
|
|
|
|
|
|
reject(err) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var fileName = self._JSONFileName(path, contractName) |
|
|
|
var fileName = self._JSONFileName(path, contractName) |
|
|
|
provider.get(fileName, (error, content) => { |
|
|
|
provider.get(fileName, (error, content) => { |
|
|
|