Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Sep 19, 2023
1 parent 52b7c43 commit a6fc85a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a6fc85a

Please sign in to comment.