File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ import (
1111 "github.com/cosmos/cosmos-sdk/types/module"
1212)
1313
14+ const consensusVersion = 5
15+
1416var (
1517 _ module.AppModule = AppModule {}
1618 _ module.AppModuleBasic = AppModuleBasic {}
@@ -36,6 +38,11 @@ func NewAppModule(k keeper.Keeper) AppModule {
3638 }
3739}
3840
41+ // ConsensusVersion returns the consensus state-breaking version for the module.
42+ func (AppModuleBasic ) ConsensusVersion () uint64 {
43+ return consensusVersion
44+ }
45+
3946// RegisterServices registers module services.
4047func (am AppModule ) RegisterServices (cfg module.Configurator ) {
4148 // Override Transfer Msg Server
@@ -55,4 +62,8 @@ func (am AppModule) RegisterServices(cfg module.Configurator) {
5562 if err := cfg .RegisterMigration (types .ModuleName , 4 , m .MigrateDenomMetadata ); err != nil {
5663 panic (fmt .Errorf ("failed to migrate transfer app from version 4 to 5 (set denom metadata migration): %v" , err ))
5764 }
65+
66+ if err := cfg .RegisterMigration (types .ModuleName , 5 , m .MigrateDenomTraceToDenom ); err != nil {
67+ panic (fmt .Errorf ("failed to migrate transfer app from version 5 to 6 (migrate DenomTrace to Denom): %v" , err ))
68+ }
5869}
You can’t perform that action at this time.
0 commit comments