diff --git a/packages/embark-deployment/src/contract_deployer.js b/packages/embark-deployment/src/contract_deployer.js index bcb44af90..0181cafe9 100644 --- a/packages/embark-deployment/src/contract_deployer.js +++ b/packages/embark-deployment/src/contract_deployer.js @@ -21,6 +21,11 @@ class ContractDeployer { } async.waterfall([ + (next) => { + this.plugins.emitAndRunActionsForEvent('deployment:contract:beforeDeploy', {contract: contract}, (_params) => { + next(); + }); + }, (next) => { // self.plugins.emitAndRunActionsForEvent('deployment:contract:arguments', {contract: contract}, (_params) => { this.plugins.emitAndRunActionsForEvent('deployment:contract:shouldDeploy', {contract: contract, shouldDeploy: true}, (_params) => { diff --git a/packages/embark-specialconfigs/src/index.js b/packages/embark-specialconfigs/src/index.js index 5ae15efe0..9b47bdf74 100644 --- a/packages/embark-specialconfigs/src/index.js +++ b/packages/embark-specialconfigs/src/index.js @@ -18,8 +18,8 @@ class SpecialConfigs { this.embark.registerActionForEvent('deployment:deployContracts:beforeAll', this.beforeAllDeployAction.bind(this)); this.embark.registerActionForEvent('deployment:deployContracts:afterAll', this.afterAllDeployAction.bind(this)); this.embark.registerActionForEvent("deployment:contract:deployed", this.doOnDeployAction.bind(this)); - this.embark.registerActionForEvent("deploy:contract:shouldDeploy", this.deployIfAction.bind(this)); - this.embark.registerActionForEvent('deploy:contract:beforeDeploy', this.beforeDeployAction.bind(this)); + this.embark.registerActionForEvent("deployment:contract:shouldDeploy", this.deployIfAction.bind(this)); + this.embark.registerActionForEvent('deployment:contract:beforeDeploy', this.beforeDeployAction.bind(this)); } async beforeAllDeployAction(cb) {