You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there I was working on how to integrate wasmd with ignite and I thought that using plugins with prehooks might be a good idea (for example when we have ignite scaffold module wasmd , if you have added the new plugin it will check and run the prehook and add the wasmd functionality )but when I wanted to test the plugins and how we can use hooks with it I found an issue that I am not so sure about it. and I think the code base might have a minor bug as you can see in https://github.com/ignite/cli/blob/f3ab0d709ec41e31a1c57f2fe86c8902d8a50497/ignite/cmd/plugin.go#L236C3-L236C3
and I think this part should be replaced with this one.
ifpostCmd!=nil {
err:=postCmd(cmd, args)
iferr!=nil {
// dont return the error, log it and let execution continue to `Run`returnerr
}
}
I would be happy if you could check and also would appreciate it if you have any suggestions about what I am thinking about wasmd integration.
The text was updated successfully, but these errors were encountered:
Regarding the cosmwasm functionality having it in a hook triggered when ignite scaffold module wasmd is executed might not be what you want because that would actually scaffold a new module called wasmd. Hooks should be used as a "side effect" of executing an existing command.
Maybe the ideal approach is that your plugin adds a new command, for example called "cosmwasm", that could be used as ignite scaffold cosmwasm or ignite cosmwasm if you want to add more features other than scaffold.
Hi there I was working on how to integrate wasmd with ignite and I thought that using plugins with prehooks might be a good idea (for example when we have ignite scaffold module wasmd , if you have added the new plugin it will check and run the prehook and add the wasmd functionality )but when I wanted to test the plugins and how we can use hooks with it I found an issue that I am not so sure about it. and I think the code base might have a minor bug as you can see in https://github.com/ignite/cli/blob/f3ab0d709ec41e31a1c57f2fe86c8902d8a50497/ignite/cmd/plugin.go#L236C3-L236C3
and I think this part should be replaced with this one.
I would be happy if you could check and also would appreciate it if you have any suggestions about what I am thinking about wasmd integration.
The text was updated successfully, but these errors were encountered: