Skip to content

Commit

Permalink
move client setting to end of NewApp
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Jun 14, 2024
1 parent 8e86d88 commit c531526
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,6 @@ func New(
scopedIBCKeeper,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
// Explicitly update IBC client parameters during initialization
ctx := app.NewUncachedContext(true, tmproto.Header{})
defaultParams := ibcclienttypes.DefaultParams()
app.IBCKeeper.ClientKeeper.SetParams(ctx, defaultParams)

// Create Transfer Keepers
ibcTransferKeeper := ibctransferkeeper.NewKeeper(
Expand Down Expand Up @@ -778,6 +774,11 @@ func New(
app.ScopedIBCKeeper = scopedIBCKeeper
app.ScopedTransferKeeper = scopedTransferKeeper

// Explicitly update IBC client parameters during initialization
ctx := app.NewUncachedContext(true, tmproto.Header{})
defaultParams := ibcclienttypes.DefaultParams()
app.IBCKeeper.ClientKeeper.SetParams(ctx, defaultParams)

return app
}

Expand Down

0 comments on commit c531526

Please sign in to comment.