Skip to content

Commit

Permalink
Set version of x/iscn to 1
Browse files Browse the repository at this point in the history
Ref #20

Initial module version must be 1

Ref module migration guide: https://docs.cosmos.network/master/building-modules/upgrade.html

Did not add migration script since there should be no state change?
  • Loading branch information
elise-ng committed Apr 4, 2022
1 parent a316e8c commit 62001b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ func (app *LikeApp) registerUpgradeHandlers() {
"ibc": 1,
"genutil": 1,
"transfer": 1,
"iscn": 1,
}

return app.mm.RunMigrations(ctx, app.configurator, fromVM)
Expand Down
4 changes: 4 additions & 0 deletions x/iscn/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ func (AppModuleBasic) Name() string {
return types.ModuleName
}

func (AppModuleBasic) ConsensusVersion() uint64 {
return 1
}

func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
types.RegisterLegacyAminoCodec(cdc)
}
Expand Down

0 comments on commit 62001b6

Please sign in to comment.