refactor(core,stf): complete gas service + simplify deps (#21166)

This commit is contained in:
Julien Robert
2024-08-08 07:30:09 +00:00
committed by GitHub
parent 7dacef600f
commit 7040177316
42 changed files with 98 additions and 131 deletions
+4 -1
View File
@@ -51,7 +51,10 @@ func ExtractAutoCLIOptions(appModules map[string]appmodule.AppModule) (map[strin
// try to auto-discover options based on the last msg and query
// services registered for the module
if mod, ok := mod.(appmodule.HasServices); ok {
// this supports the legacy core/appmodule v1 service registration
if mod, ok := mod.(interface {
RegisterServices(grpc.ServiceRegistrar) error
}); ok {
err := mod.RegisterServices(autoCliRegistrar)
if err != nil {
return nil, err