Skip to content

Commit

Permalink
feat: update x/upgrade keeper.DumpUpgradeInfoToDisk to support Plan.I…
Browse files Browse the repository at this point in the history
…nfo (cosmos#10532)

* feat: update x/upgrade keeper.DumpUpgradeInfoToDisk to support Plan.Info

* add changelog

* create DumpUpgradeInfoWithInfoToDisk instead of overloading DumpUpgradeInfoToDisk
  • Loading branch information
robert-zaremba authored and Eengineer1 committed Aug 25, 2022
1 parent 4fd3c5e commit 5b920db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -37,6 +37,9 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [Unreleased]

### Improvements
* (x/upgrade) [\#10532](https://github.com/cosmos/cosmos-sdk/pull/10532) Add `keeper.DumpUpgradeInfoWithInfoToDisk` to include `Plan.Info` in the upgrade-info file.

### Bug Fixes

* [\#10414](https://github.com/cosmos/cosmos-sdk/pull/10414) Use `sdk.GetConfig().GetFullBIP44Path()` instead `sdk.FullFundraiserPath` to generate key
Expand Down
2 changes: 1 addition & 1 deletion x/upgrade/keeper/keeper.go
Expand Up @@ -382,7 +382,7 @@ func (k Keeper) DumpUpgradeInfoToDisk(height int64, p types.Plan) error {
Height: height,
Info: p.Info,
}
info, err := json.Marshal(upgradeInfo)
bz, err := json.Marshal(upgradeInfo)
if err != nil {
return err
}
Expand Down

0 comments on commit 5b920db

Please sign in to comment.