fix(gov): Fix default genesis to use v1beta2 (#11131)
Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
parent
21295060ab
commit
a0a1197c27
|
@ -61,7 +61,7 @@ func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
||||||
// DefaultGenesis returns default genesis state as raw bytes for the gov
|
// DefaultGenesis returns default genesis state as raw bytes for the gov
|
||||||
// module.
|
// module.
|
||||||
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
|
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.
|
// ValidateGenesis performs genesis state validation for the gov module.
|
||||||
|
|
Loading…
Reference in New Issue