From a6fc85a15c74599544d83150900fd02ae152745e Mon Sep 17 00:00:00 2001 From: rapha Date: Tue, 19 Sep 2023 11:09:04 +0200 Subject: [PATCH] chore: add comment --- app/app.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/app.go b/app/app.go index 50a20200..767311ac 100644 --- a/app/app.go +++ b/app/app.go @@ -253,6 +253,12 @@ func NewKyveApp( // baseAppOptions = append(baseAppOptions, prepareOpt) app.App = appBuilder.Build(logger, db, traceStore, baseAppOptions...) + // TODO(rapha): right now it is not properly working. Why? I don't really know if the depinject from cosmos-sdk is working properly. + // The problem is that appBuilder.Modules + // - app.ModuleManager.Modules["delegation"].keeper.stakersKeeper is nil + // - app.ModuleManager.Modules["query"].keeper.bundlesKeeper is nil + // This values should be set by the depinject 'Invoke' method. The invoke is called but the values are not set for the ModuleManager. + // However the keepers on the app itself are correctly set. This is most likely some pointer/reference issue. // Register legacy modules app.registerIBCModules()