-
Notifications
You must be signed in to change notification settings - Fork 358
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
connection msgs.rs split #268
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.
Looks much cleaner like this! Looks good to me.
@@ -5,7 +5,7 @@ use crate::ics03_connection::error::{Error, Kind}; | |||
use crate::ics03_connection::handler::verify::{check_client_consensus_height, verify_proofs}; | |||
use crate::ics03_connection::handler::ConnectionEvent::ConnOpenTry; | |||
use crate::ics03_connection::handler::ConnectionResult; | |||
use crate::ics03_connection::msgs::MsgConnectionOpenTry; | |||
use crate::ics03_connection::msgs::conn_open_try::MsgConnectionOpenTry; |
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.
In a separate, later PR, we can consider using the trick Greg used in ibc-proto, to shorten the import paths. So instead of
use crate::ics03_connection::msgs::conn_open_try::MsgConnectionOpenTry;
we could get
use crate::ics03_connection::msgs::MsgConnectionOpenTry;
by using in msgs.rs something like:
mod conn_open_try;
pub use conn_open_try::*;
This improvement could benefit multiple other parts of our codebase, not just msgs. I will open an issue for this later on.
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.
Agreed. I tried this briefly but couldn't make it work and ran out of time.
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.
Ah in fact there is already an issue open for this: informalsystems/ibc-rs#186. We'll solve this later!
* Split connection msgs * Cleanup and added From impls and tests for all messages * forgotten merge conflict resolution
Closes: informalsystems/ibc-rs#112
Description
Split the
ics03_connection/msgs.rs
, addedFrom
for all connection messages and testsFor contributor use:
docs/
) and code commentsFiles changed
in the Github PR explorer