mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-20 01:18:52 +00:00
change to command
This commit is contained in:
parent
752fde7fed
commit
daaeb30262
@ -428,7 +428,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…
x
Reference in New Issue
Block a user