change to command
This commit is contained in:
parent
42f46e427f
commit
609c050576
|
@ -425,7 +425,7 @@ class Embark {
|
|||
if(!options.ensDomain) {
|
||||
return callback(null, hash);
|
||||
}
|
||||
engine.plugins.emitAndRunActionsForEvent("storage:ens:associate",
|
||||
engine.plugins.request("storage:ens:associate",
|
||||
{name: options.ensDomain, storageHash: hash}, (err) => {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
|
|
|
@ -22,7 +22,7 @@ class ENS {
|
|||
registerEvents() {
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue