-
Notifications
You must be signed in to change notification settings - Fork 329
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
Check version
field of message in ConnOpenInit
handler
#2063
Conversation
version
field of message in ConnOpenInit
handler
want_pass: false, | ||
}, | ||
Test { | ||
name: "No version in MsgConnectionOpenInit msg".to_string(), |
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.
Can we add a test for when there is a version mismatch?
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.
Done
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 great, thanks for catching that! Would be nice to add one more test for when there is a version mismatch but otherwise LGTM :)
Closes: cosmos/ibc-rs#51
Description
We previously ignored the version in the message when handling a
MsgConnOpenInit
. This PR fixes this in a manner compliant with ICS 003.Relevant part of the spec is here (search for
A specific version can optionally be passed
).PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.