fix(types): check for HasABCIGenesis in CoreAppModuleBasicAdaptor (#19709)

This commit is contained in:
Julien Robert
2024-03-08 21:38:02 +01:00
committed by GitHub
parent f9041cde5c
commit 3382e8ea82
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -109,6 +109,10 @@ func (c coreAppModuleBasicAdaptor) ExportGenesis(ctx sdk.Context, cdc codec.JSON
return mod.ExportGenesis(ctx, cdc)
}
if mod, ok := c.module.(HasABCIGenesis); ok {
return mod.ExportGenesis(ctx, cdc)
}
return nil
}