Skip to content

Commit

Permalink
fix: add error handling for x/foundation migration (#1295)
Browse files Browse the repository at this point in the history
* fix: add missing error handling for migration

* chore: update changelog

* chore: update changelog
  • Loading branch information
jaeseung-bae authored Mar 23, 2024
1 parent 66a0114 commit 1f8e902
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (x/foundation) [\#1283](https://github.com/Finschia/finschia-sdk/pull/1283) add init logic of foundation module accounts to InitGenesis in order to eliminate potential panic (backport #1277)
* (x/collection) [\#1282](https://github.com/Finschia/finschia-sdk/pull/1282) eliminates potential risk for Insufficient Sanity Check of tokenID in Genesis (backport #1276)
* (x/collection) [\#1290](https://github.com/Finschia/finschia-sdk/pull/1290) export x/collection params into genesis (backport #1268)
* (x/foundation) [\#1295](https://github.com/Finschia/finschia-sdk/pull/1295) add missing error handling for migration

### Removed

Expand Down
5 changes: 4 additions & 1 deletion x/foundation/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd
func (am AppModule) RegisterServices(cfg module.Configurator) {
foundation.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServer(am.keeper))
foundation.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServer(am.keeper))
keeper.NewMigrator(am.keeper).Register(cfg.RegisterMigration)
err := keeper.NewMigrator(am.keeper).Register(cfg.RegisterMigration)
if err != nil {
panic(err)
}
}

// InitGenesis performs genesis initialization for the foundation module. It returns
Expand Down

0 comments on commit 1f8e902

Please sign in to comment.