fix(contract-artifacts): set address as deployedAddress on artifacts

This commit is contained in:
Jonathan Rainville 2019-02-21 14:20:30 -05:00 committed by Iuri Matias
parent 0b77710003
commit a895e839fa

View File

@ -334,6 +334,9 @@ class ContractsManager {
}
try {
self.contracts[className] = JSON.parse(artifactBuf.toString());
if (self.contracts[className].deployedAddress) {
self.contracts[className].address = self.contracts[className].deployedAddress;
}
eachCb();
} catch (e) {
self.logger.error(__('Artifact file does not seem to be valid JSON (%s)', contract.artifact));