refactor: split ExportGenesis into two functions to maintain backwards compatibility (#13448)

* split ExportGenesis into two functions to maintain backwards compatibility (#339)

* fix tests

Co-authored-by: Nicolas Lara <nicolaslara@gmail.com>
This commit is contained in:
Julien Robert
2022-10-04 22:42:58 +00:00
committed by GitHub
co-authored by Nicolas Lara
parent c3887986ff
commit facac1c5f8
5 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ func (app *SimApp) ExportAppStateAndValidators(forZeroHeight bool, jailAllowedAd
app.prepForZeroHeightGenesis(ctx, jailAllowedAddrs)
}
genState := app.ModuleManager.ExportGenesis(ctx, app.appCodec, modulesToExport)
genState := app.ModuleManager.ExportGenesisForModules(ctx, app.appCodec, modulesToExport)
appState, err := json.MarshalIndent(genState, "", " ")
if err != nil {
return servertypes.ExportedApp{}, err