Skip to content

Commit

Permalink
add light client module
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Jan 15, 2025
1 parent 1e81a60 commit 12839ac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,11 @@ func New(

// this line is used by starport scaffolding # ibc/app/router
app.IBCKeeper.SetRouter(ibcRouter)
clientKeeper := app.IBCKeeper.ClientKeeper
storeProvider := clientKeeper.GetStoreProvider()

tmLightClientModule := ibctm.NewLightClientModule(appCodec, storeProvider)
clientKeeper.AddRoute(ibctm.ModuleName, &tmLightClientModule)

// Create evidence Keeper for to register the IBC light client misbehavior evidence route
evidenceKeeper := evidencekeeper.NewKeeper(
Expand Down Expand Up @@ -823,7 +828,8 @@ func New(

// ibc modules
ibc.NewAppModule(app.IBCKeeper),
ibctm.AppModule{},
// IBC light clients
ibctm.NewAppModule(tmLightClientModule),
transferModule,
icaModule,
feeModule,
Expand Down

0 comments on commit 12839ac

Please sign in to comment.