mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-10 12:46:29 +00:00
fix other methods for deploy tracker
This commit is contained in:
parent
454a710367
commit
37186d2dc6
@ -20,15 +20,16 @@ class DeployTracker {
|
||||
|
||||
this.events.on("blockchain:started", this.loadChainTrackerFile.bind(this));
|
||||
this.embark.registerActionForEvent('deployment:deployContracts:beforeAll', this.setCurrentChain.bind(this));
|
||||
// this.embark.registerActionForEvent("deployment:contract:deployed", this.trackAndSaveContract.bind(this));
|
||||
// this.embark.registerActionForEvent("deploy:contract:shouldDeploy", this.checkIfDeploymentIsNeeded.bind(this));
|
||||
this.embark.registerActionForEvent("deployment:contract:deployed", this.trackAndSaveContract.bind(this));
|
||||
this.embark.registerActionForEvent("deploy:contract:shouldDeploy", this.checkIfDeploymentIsNeeded.bind(this));
|
||||
}
|
||||
|
||||
trackAndSaveContract(params, cb) {
|
||||
if (!this.embark.config.contractsConfig.tracking) return;
|
||||
if (!this.embark.config.contractsConfig.tracking) return cb();
|
||||
let contract = params.contract;
|
||||
this.trackContract(contract.className, contract.realRuntimeBytecode, contract.realArgs, contract.deployedAddress);
|
||||
this.save();
|
||||
cb();
|
||||
}
|
||||
|
||||
checkIfDeploymentIsNeeded(params, cb) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user