-
Notifications
You must be signed in to change notification settings - Fork 629
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
Add Wrap/Unwrap Interfaces and implement OnChanOpenInit #7059
Add Wrap/Unwrap Interfaces and implement OnChanOpenInit #7059
Conversation
@@ -22,13 +22,13 @@ func (im *LegacyIBCModule) GetCallbacks() []ClassicIBCModule { | |||
|
|||
// NewLegacyIBCModule creates a new IBCModule given the keeper | |||
func NewLegacyIBCModule(cbs ...ClassicIBCModule) ClassicIBCModule { | |||
return LegacyIBCModule{ | |||
return &LegacyIBCModule{ |
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.
small tweak since we need the reference type to implement the interface, not the value type.
versionBytes, err := types.ModuleCdc.MarshalJSON(&versionMetadata) | ||
if err != nil { | ||
return "", err | ||
if strings.TrimSpace(version) != "" && version != types.Version { |
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.
these diffs 😍
Quality Gate passed for 'ibc-go'Issues Measures |
…andle-backwards-compatibility' of github.com:cosmos/ibc-go into cian/issue#6954-add-version-wrap/unwrap-interfaces-to-handle-backwards-compatibility
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 added more in-line code docs so hopefully the handler makes sense when reading later
Description
This PR adds the optional VersionWrapper interface and implementation for ics29.
This PR ended up also implementing OnChanOpenInit in the LegacyIBCModule and updating all implementations to perform the new logic.
closes #7017
closes #6954
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/
).godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.