-
Notifications
You must be signed in to change notification settings - Fork 597
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
imp: rm app upgrade interface from IBCModule and use type assertions for app callback routing #5375
imp: rm app upgrade interface from IBCModule and use type assertions for app callback routing #5375
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.
LGTM, but would be very lovely with test cases :)
Indeed, I thought about tests but I think the mock app is implementing all the upgrade callbacks. I'd rather not introduce a dependency on some app that doesn't implement the interface yet. |
Think we need to cast in the app callbacks as well |
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.
left some comments/nits for your reading delight, lgtm!
modules/apps/27-interchain-accounts/controller/ibc_middleware.go
Outdated
Show resolved
Hide resolved
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## 04-channel-upgrades #5375 +/- ##
=======================================================
- Coverage 80.68% 80.45% -0.24%
=======================================================
Files 197 197
Lines 14871 14927 +56
=======================================================
+ Hits 11999 12009 +10
- Misses 2420 2455 +35
- Partials 452 463 +11
|
I would test by creating a router which points to a mock ibc app which doesn't implement the upgrade module interface. It might be possible to rework the mock package so that it has three types:
|
Description
UpgradableModule
fromIBCModule
interfacecbs
toUpgradeableModule
for app callback routing in corecloses: #1614
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.