Skip to content

Commit

Permalink
fix(upgrade): drs upgrade from 1 to 3 fix (#199)
Browse files Browse the repository at this point in the history
(cherry picked from commit b2e0573)
  • Loading branch information
srene authored and omritoptix committed Dec 18, 2024
1 parent 19b57ca commit f2932ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/upgrades/drs-3/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func CreateUpgradeHandler(
configurator module.Configurator,
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
if rpKeeper.GetParams(ctx).DrsVersion == 1 {
if rpKeeper.Version(ctx) == 1 {
// first run drs-2 migration
if err := drs2.HandleUpgrade(ctx, rpKeeper); err != nil {
return nil, err
Expand Down

0 comments on commit f2932ad

Please sign in to comment.