fix(types): add fallbacks for CoreAppModuleBasicAdaptor (#16010)

This commit is contained in:
Julien Robert
2023-05-03 17:45:54 +00:00
committed by GitHub
parent 1705615ef0
commit b5c77d6452
6 changed files with 40 additions and 15 deletions
+4 -5
View File
@@ -164,11 +164,10 @@ func SetupAppBuilder(inputs AppInputs) {
continue
}
if basicMod, ok := mod.(module.AppModuleBasic); ok {
app.basicManager[name] = basicMod
basicMod.RegisterInterfaces(inputs.InterfaceRegistry)
basicMod.RegisterLegacyAminoCodec(inputs.LegacyAmino)
}
coreAppModuleBasic := module.CoreAppModuleBasicAdaptor(name, mod)
app.basicManager[name] = coreAppModuleBasic
coreAppModuleBasic.RegisterInterfaces(inputs.InterfaceRegistry)
coreAppModuleBasic.RegisterLegacyAminoCodec(inputs.LegacyAmino)
}
}