-
Notifications
You must be signed in to change notification settings - Fork 93
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
Emit message events #564
Emit message events #564
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #564 +/- ##
==========================================
+ Coverage 72.70% 73.02% +0.32%
==========================================
Files 126 126
Lines 15550 15679 +129
==========================================
+ Hits 11306 11450 +144
+ Misses 4244 4229 -15
... and 3 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
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.
looks much better! left just a nit
crates/ibc/src/events.rs
Outdated
impl TryFrom<IbcEventType> for abci::Event { | ||
type Error = Error; | ||
|
||
fn try_from(event_type: IbcEventType) -> Result<Self, Self::Error> { |
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.
I find this unintuitive since it's not immediately clear to me that the map IbcEventType -> abci::Event
yields a message
abci Event
. Can we instead make this a function
fn try_message_event_from_event_type(event_type: IbcEventType) -> Result<abci::Event, Error> { ... }`
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.
thanks!
* emit message events * add changelog * for clippy * remove ClientMisbehaviourMessage * add try_message_event_from_event_type
Closes: #563
Description
Each execution handler emits a message event for the IBC handling according to https://github.com/cosmos/ibc-go/blob/main/docs/ibc/events.md#sendpacket-application-module-call
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.