Skip to content

Commit

Permalink
Merge PR #5775: Fix x/genutil ExportGenesis
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Mar 10, 2020
1 parent 9da1fb5 commit 88e10b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Bug Fixes

* (x/genutil) [\#5499](https://github.com/cosmos/cosmos-sdk/pull/) Ensure `DefaultGenesis` returns valid and non-nil default genesis state.
* (x/genutil) [\#5775](https://github.com/cosmos/cosmos-sdk/pull/5775) Fix `ExportGenesis` in `x/genutil` to export default genesis state (`[]`) instead of `null`.
* (genesis) [\#5086](https://github.com/cosmos/cosmos-sdk/issues/5086) Ensure `gentxs` are always an empty array instead of `nil`.

## [v0.37.7] - 2020-02-10
Expand Down
2 changes: 1 addition & 1 deletion x/genutil/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.Va

// module export genesis
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage {
return nil
return am.DefaultGenesis()
}

0 comments on commit 88e10b3

Please sign in to comment.