Skip to content

Commit

Permalink
use different keys for controller and host
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega committed Apr 19, 2024
1 parent cb5c501 commit 24e32be
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions modules/apps/27-interchain-accounts/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ func init() {
type ModuleInputs struct {
depinject.In

Config *modulev1.Module
Cdc codec.Codec
Key *storetypes.KVStoreKey
Config *modulev1.Module
Cdc codec.Codec
ControllerKey *storetypes.KVStoreKey
HostKey *storetypes.KVStoreKey

Ics4Wrapper porttypes.ICS4Wrapper
ChannelKeeper types.ChannelKeeper
Expand Down Expand Up @@ -70,7 +71,7 @@ func ProvideModule(in ModuleInputs) ModuleOutputs {

controllerkeeper := controllerKeeper.NewKeeper(
in.Cdc,
in.Key,
in.ControllerKey,
in.LegacySubspace,
in.Ics4Wrapper,
in.ChannelKeeper,
Expand All @@ -81,7 +82,7 @@ func ProvideModule(in ModuleInputs) ModuleOutputs {
)
hostkeeper := hostKeeper.NewKeeper(
in.Cdc,
in.Key,
in.HostKey,
in.LegacySubspace,
in.Ics4Wrapper,
in.ChannelKeeper,
Expand Down

0 comments on commit 24e32be

Please sign in to comment.