You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@roy-dydx thanks for opening the issue. I believe we can remove the paramtypes.Subspace parameter from keeper constructor functions in the next major release (please correct if I'm wrong, @colin-axner or @damiannolan). Once the migration to self-manager params is run as part of the upgrade to ibc-go v8.0.0, then we can remove the legacy subspace. For that reason, since we are going to remove it probably in the next 6 months, does it cause you a lot of trouble if we just leave it as is? Is the downside of importing x/params reasonable for you for the time being?
Doing an expected interface is a fairly low lift. I could make a PR today.
Given that x/params is the same go mod dependency tho it doesn't really make much of a difference, we're not really reducing the dep graph here and as @crodriguezvega says it will be removed in the next release.
I do see it being a code smell tho for new chains to have to bring in legacy imports which are existing for migration purposes only. I guess that is the issue for @roy-dydx? Happy to help clean it up.
Summary of Bug
Keeper constructors still take
paramtypes.Subspace
as a parameter (e.g. https://github.com/cosmos/ibc-go/blob/59e42c6/modules/core/keeper/keeper.go#L43). This requires users to includex/params
to pass in an initializedSubspace
.Instead, these constructors should take in an interface like
cosmos-sdk
modules do (e.g. https://pkg.go.dev/github.com/cosmos/cosmos-sdk@v0.47.5/x/auth#NewAppModule). This allows users to pass innil
and not have to include x/param types.Expected Behaviour
See above.
Version
59e42c6
Steps to Reproduce
N/A
For Admin Use
The text was updated successfully, but these errors were encountered: