-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: emit channel event instead of connection #603
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -286,7 +286,7 @@ func (k Keeper) ChannelOpenInit(goCtx context.Context, msg *channeltypes.MsgChan | |||||
ctx.EventManager().EmitEvents(sdk.Events{ | ||||||
sdk.NewEvent( | ||||||
sdk.EventTypeMessage, | ||||||
sdk.NewAttribute(sdk.AttributeKeyModule, connectiontypes.AttributeValueCategory), | ||||||
sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory), | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm yea, the other channel callbacks just referenced There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see that we import the channel types twice?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I just saw that as well. I'll refactor the other callbacks to use channeltypes and remove the other import (this was not added by me) |
||||||
), | ||||||
}) | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@seantking will you also open a PR on the SDK? Let me know if you would like me to do it instead.