Skip to content

Commit

Permalink
Merge branch 'master' into ruhatch/cancel-credit
Browse files Browse the repository at this point in the history
  • Loading branch information
ruhatch committed Jul 12, 2021
2 parents effeec4 + 3b7c517 commit ec8e478
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/regen/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
}

initRootCmd(rootCmd, encodingConfig)
rootCmd.AddCommand(server.RosettaCommand(encodingConfig.InterfaceRegistry, encodingConfig.Marshaler))

return rootCmd, encodingConfig
}
Expand Down
6 changes: 4 additions & 2 deletions app/stable_appconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ func setCustomKVStoreKeys() []string {
}

func (app *RegenApp) registerUpgradeHandlers() {
app.UpgradeKeeper.SetUpgradeHandler("v0.43.0-rc0-upgrade", func(ctx sdk.Context, plan upgradetypes.Plan, _ module.VersionMap) (module.VersionMap, error) {
// This is the upgrade plan name we used in the gov proposal.
upgradeName := "v0.43.0-rc0-upgrade"
app.UpgradeKeeper.SetUpgradeHandler(upgradeName, func(ctx sdk.Context, plan upgradetypes.Plan, _ module.VersionMap) (module.VersionMap, error) {
// 1st-time running in-store migrations, using 1 as fromVersion to
// avoid running InitGenesis.
// Explicitly skipping x/auth migrations. It is already patched in regen-ledger v1.0.
Expand Down Expand Up @@ -72,7 +74,7 @@ func (app *RegenApp) registerUpgradeHandlers() {
panic(err)
}

if upgradeInfo.Name == "v0.43.0-beta1-upgrade" && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
if upgradeInfo.Name == upgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := storetypes.StoreUpgrades{
Added: []string{"authz", "feegrant"},
}
Expand Down

0 comments on commit ec8e478

Please sign in to comment.