Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
fix(testapp): chain fails when api is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Nov 21, 2023
1 parent ab880e2 commit f7aad2f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions e2e/testapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,14 @@ func (app *SimApp) SimulationManager() *module.SimulationManager {
return nil
}

// RegisterTxService implements the Application.RegisterTxService method.
func (app *SimApp) RegisterTxService(clientCtx client.Context) {
if err := app.Polaris.SetupServices(clientCtx); err != nil {
panic(err)
}
app.App.RegisterTxService(clientCtx)
}

// RegisterAPIRoutes registers all application module routes with the provided
// API server.
func (app *SimApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig) {
Expand All @@ -262,10 +270,6 @@ func (app *SimApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APICon
); err != nil {
panic(err)
}

if err := app.Polaris.SetupServices(apiSvr.ClientCtx); err != nil {
panic(err)
}
}

// Close shuts down the application.
Expand Down

0 comments on commit f7aad2f

Please sign in to comment.