-
Notifications
You must be signed in to change notification settings - Fork 624
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
Remove unnecessary event attribute from INIT Handshake Msgs #3867
Conversation
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.
Thank you for this PR, @ruthishvitwit!
From a quick look at relayer and Hermes code, it looks like it should be safe to remove these from the events.
Relevant links for relayer: this and this. If the key is not present in the event, then the parser will just not try to parse the value and it will default to empty string anyway. Besides, the e2e tests are passing in your PR, so that's also a good sign.
Relevant links for hermes: this and this. Similar thing as with relayer: if the key is not present then the value will be a None
, instead of an Some("")
, but that should be fine too.
Mentioning here @jtieri and @ljoss17 for extra confirmation.
Maybe it would be nice also to mention this change in the v7-to-v8
migration docs.
Everything looks good on Hermes side, I ran the tests and haven't seen any issues with the changes from this PR |
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.
Thank you, @ruthishvitwit! Given that e2e tests use golang relayer and they pass, it should be fine with it.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3867 +/- ##
==========================================
- Coverage 78.84% 78.84% -0.01%
==========================================
Files 187 187
Lines 12950 12948 -2
==========================================
- Hits 10211 10209 -2
Misses 2311 2311
Partials 428 428
|
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 @ruthishvitwit 🥳
Description
closes: #3847
Commit Message / Changelog Entry
Removed counterparty connection/channel id from both ConnOpenInit and ChanOpenInit as they will both be empty in this stage
chore(api)!: Remove unnecessary event attribute from INIT Handshake Msgs
see the guidelines for commit messages. (view raw markdown for examples)
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
).godoc
comments.Files changed
in the Github PR explorer.Codecov Report
in the comment section below once CI passes.