mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-24 12:40:21 +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 {
|
||||
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user