|
|
@ -155,14 +155,14 @@ export const createInstance = async ( |
|
|
|
return terminalLogger(plugin, log) |
|
|
|
return terminalLogger(plugin, log) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const finalCb = (error, contractObject, address) => { |
|
|
|
const finalCb = async (error, contractObject, address) => { |
|
|
|
if (error) { |
|
|
|
if (error) { |
|
|
|
const log = logBuilder(error) |
|
|
|
const log = logBuilder(error) |
|
|
|
|
|
|
|
|
|
|
|
return terminalLogger(plugin, log) |
|
|
|
return terminalLogger(plugin, log) |
|
|
|
} |
|
|
|
} |
|
|
|
addInstance(dispatch, { contractData: contractObject, address, name: contractObject.name }) |
|
|
|
addInstance(dispatch, { contractData: contractObject, address, name: contractObject.name }) |
|
|
|
const data = plugin.compilersArtefacts.getCompilerAbstract(contractObject.contract.file) |
|
|
|
const data = await plugin.compilersArtefacts.getCompilerAbstract(contractObject.contract.file) |
|
|
|
|
|
|
|
|
|
|
|
plugin.compilersArtefacts.addResolvedContract(addressToString(address), data) |
|
|
|
plugin.compilersArtefacts.addResolvedContract(addressToString(address), data) |
|
|
|
if (plugin.REACT_API.ipfsChecked) { |
|
|
|
if (plugin.REACT_API.ipfsChecked) { |
|
|
|