fix(gov): Fix default genesis to use v1beta2 (#11131)

Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
Amaury
2022-02-07 16:46:49 +01:00
committed by GitHub
co-authored by Marko
parent 21295060ab
commit a0a1197c27
+1 -1
View File
@@ -61,7 +61,7 @@ func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
// DefaultGenesis returns default genesis state as raw bytes for the gov
// module.
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
return cdc.MustMarshalJSON(v1beta1.DefaultGenesisState())
return cdc.MustMarshalJSON(v1beta2.DefaultGenesisState())
}
// ValidateGenesis performs genesis state validation for the gov module.