change to command

This commit is contained in:
Jonathan Rainville 2018-07-31 10:09:41 -04:00 committed by Iuri Matias
parent 42f46e427f
commit 609c050576
2 changed files with 2 additions and 2 deletions

View File

@ -425,7 +425,7 @@ class Embark {
if(!options.ensDomain) { if(!options.ensDomain) {
return callback(null, hash); return callback(null, hash);
} }
engine.plugins.emitAndRunActionsForEvent("storage:ens:associate", engine.plugins.request("storage:ens:associate",
{name: options.ensDomain, storageHash: hash}, (err) => { {name: options.ensDomain, storageHash: hash}, (err) => {
if (err) { if (err) {
return callback(err); return callback(err);

View File

@ -22,7 +22,7 @@ class ENS {
registerEvents() { registerEvents() {
this.embark.registerActionForEvent("contracts:deploy:afterAll", this.setProviderAndRegisterDomains.bind(this)); this.embark.registerActionForEvent("contracts:deploy:afterAll", this.setProviderAndRegisterDomains.bind(this));
this.embark.registerActionForEvent("storage:ens:associate", this.associateStorageToEns.bind(this)); this.embark.setCommandHandler("storage:ens:associate", this.associateStorageToEns.bind(this));
} }
setProviderAndRegisterDomains(cb) { setProviderAndRegisterDomains(cb) {