-
Notifications
You must be signed in to change notification settings - Fork 650
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 explicit checks in OnChanUpgradeTry
callback of ICA host
#5519
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5519 +/- ##
==========================================
- Coverage 81.20% 81.19% -0.02%
==========================================
Files 197 197
Lines 15235 15253 +18
==========================================
+ Hits 12372 12384 +12
- Misses 2400 2404 +4
- Partials 463 465 +2
|
@@ -84,6 +85,15 @@ func (Keeper) Logger(ctx sdk.Context) log.Logger { | |||
return ctx.Logger().With("module", fmt.Sprintf("x/%s-%s", exported.ModuleName, icatypes.ModuleName)) | |||
} | |||
|
|||
// getConnectionID returns the connection id for the given port and channelIDs. | |||
func (k Keeper) getConnectionID(ctx sdk.Context, portID, channelID string) (string, error) { |
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 this function so that we could verify that connection hops doesn't change.
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 @crodriguezvega
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.
lgtm, left some minor nits on comments/code cov
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 @crodriguezvega, LGTM! 🚀
Agree with suggestions from the others :)
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.
ACK changes
Thank you very much for the reviews everyone, and 💚 🙇 🙏 to @charleenfei for addressing the review comments! |
* add explicit checks in on chan upgrade try callback of ica host * pr review * Update modules/apps/27-interchain-accounts/host/keeper/handshake.go --------- Co-authored-by: Charly <charly@interchain.io> Co-authored-by: Charly <charly@interchain.berlin> Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com> (cherry picked from commit 7a72df0)
#5558) * add explicit checks in on chan upgrade try callback of ica host * pr review * Update modules/apps/27-interchain-accounts/host/keeper/handshake.go --------- Co-authored-by: Charly <charly@interchain.io> Co-authored-by: Charly <charly@interchain.berlin> Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com> (cherry picked from commit 7a72df0) Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
* add explicit checks in on chan upgrade try callback of ica host * pr review * Update modules/apps/27-interchain-accounts/host/keeper/handshake.go --------- Co-authored-by: Charly <charly@interchain.io> Co-authored-by: Charly <charly@interchain.berlin> Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
* add explicit checks in on chan upgrade try callback of ica host * pr review * Update modules/apps/27-interchain-accounts/host/keeper/handshake.go --------- Co-authored-by: Charly <charly@interchain.io> Co-authored-by: Charly <charly@interchain.berlin> Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
Description
ref: #5462 (comment)
closes: #XXXX
Commit Message / Changelog Entry
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.