diff --git a/lib/modules/ens/index.js b/lib/modules/ens/index.js index 8fbe6560..bef34d59 100644 --- a/lib/modules/ens/index.js +++ b/lib/modules/ens/index.js @@ -28,7 +28,7 @@ class ENS { } registerEvents() { - this.embark.registerActionForEvent("contracts:deploy:afterAll", this.setProviderAndRegisterDomains.bind(this)); + this.events.once("contracts:deploy:afterAll", this.setProviderAndRegisterDomains.bind(this)); this.events.setCommandHandler("storage:ens:associate", this.associateStorageToEns.bind(this)); }