From 24e32be52543b0d80ab401977edd8e125f0ef4af Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Date: Fri, 19 Apr 2024 15:44:20 +0200 Subject: [PATCH] use different keys for controller and host --- modules/apps/27-interchain-accounts/depinject.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/apps/27-interchain-accounts/depinject.go b/modules/apps/27-interchain-accounts/depinject.go index 6022baaf50e..0a3901cd224 100644 --- a/modules/apps/27-interchain-accounts/depinject.go +++ b/modules/apps/27-interchain-accounts/depinject.go @@ -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 @@ -70,7 +71,7 @@ func ProvideModule(in ModuleInputs) ModuleOutputs { controllerkeeper := controllerKeeper.NewKeeper( in.Cdc, - in.Key, + in.ControllerKey, in.LegacySubspace, in.Ics4Wrapper, in.ChannelKeeper, @@ -81,7 +82,7 @@ func ProvideModule(in ModuleInputs) ModuleOutputs { ) hostkeeper := hostKeeper.NewKeeper( in.Cdc, - in.Key, + in.HostKey, in.LegacySubspace, in.Ics4Wrapper, in.ChannelKeeper,