mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-20 01:18:52 +00:00
Merge pull request #966 from cryptomental/feature/track-fields-in-contract-configuration
contract_deployer: Redeploy if track field is set to false.
This commit is contained in:
commit
a2a6ff6117
@ -155,6 +155,11 @@ class ContractDeployer {
|
||||
if (!trackedContract.address) {
|
||||
return self.deployContract(contract, next);
|
||||
}
|
||||
// deploy the contract regardless if track field is defined and set to false
|
||||
if (trackedContract.track === false) {
|
||||
self.logFunction(contract)(contract.className.bold.cyan + __(" will be redeployed").green);
|
||||
return self.deployContract(contract, next);
|
||||
}
|
||||
|
||||
self.blockchain.getCode(trackedContract.address, function(_getCodeErr, codeInChain) {
|
||||
if (codeInChain !== "0x") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user