refactor(genutil): audit (#16818)

This commit is contained in:
Julien Robert
2023-07-03 12:29:46 +00:00
committed by GitHub
parent 6b1acf71ae
commit e4e7922cea
3 changed files with 8 additions and 1 deletions
+5
View File
@@ -11,6 +11,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/server/types"
"github.com/cosmos/cosmos-sdk/version"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
)
@@ -87,6 +88,10 @@ func ExportCmd(appExporter types.AppExporter, defaultNodeHome string) *cobra.Com
return err
}
// set current binary version
appGenesis.AppName = version.AppName
appGenesis.AppVersion = version.Version
appGenesis.AppState = exported.AppState
appGenesis.InitialHeight = exported.Height
appGenesis.Consensus = genutiltypes.NewConsensusGenesis(exported.ConsensusParams, exported.Validators)