mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-03 17:34:22 +00:00
fix(contract-artifacts): set address as deployedAddress on artifacts
This commit is contained in:
parent
0b77710003
commit
a895e839fa
@ -334,6 +334,9 @@ class ContractsManager {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
self.contracts[className] = JSON.parse(artifactBuf.toString());
|
self.contracts[className] = JSON.parse(artifactBuf.toString());
|
||||||
|
if (self.contracts[className].deployedAddress) {
|
||||||
|
self.contracts[className].address = self.contracts[className].deployedAddress;
|
||||||
|
}
|
||||||
eachCb();
|
eachCb();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
self.logger.error(__('Artifact file does not seem to be valid JSON (%s)', contract.artifact));
|
self.logger.error(__('Artifact file does not seem to be valid JSON (%s)', contract.artifact));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user