-
Notifications
You must be signed in to change notification settings - Fork 98
Closed
Labels
O: reliabilityObjective: cause to improve trustworthiness and consistent performingObjective: cause to improve trustworthiness and consistent performing
Milestone
Description
Details
There are a few Default implementations in ibc-rs codebase. My opinion is - they should not be called Default. Default can mean different things in different contexts. Users are encouraged to be specific.
For examples,
- Use concrete channel order enum
- Use
Version::empty()directly
My opinion is to use ::zero(), ::one(), ::empty() - to be specific in the context.
Along with it, some of the Default values are not expected somewhere else. For example, CommitmentPrefix derives Default.
Which recursively used for Counterparty's Default.
But CounterParty::try_from(RawCounterParty::from(Counterparty::default())) fails as RawCounterparty::from assigns empty CommitmentPrefix - which is not expected when it is converted back to Counterparty.
Version
<= v0.50.0
Metadata
Metadata
Assignees
Labels
O: reliabilityObjective: cause to improve trustworthiness and consistent performingObjective: cause to improve trustworthiness and consistent performing