Skip to content

RegisterGRPCGatewayRoutes placeholder in module.go #2797

@fadeev

Description

@fadeev

As far as I can tell there is really no point in having this placeholder.

// x/MODULE_NAME/module.go:

func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
  // this line is used by starport scaffolding # 2
}

Shall we remove it and scaffold the right thing from the beginning?

func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) {
  types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx))
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions