fix event name

This commit is contained in:
Iuri Matias 2019-08-01 09:45:52 -04:00
parent 7643f0fec4
commit 9ec632c205
2 changed files with 7 additions and 2 deletions

View File

@ -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) => {

View File

@ -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) {