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
parent 21295060ab
commit a0a1197c27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.