Skip to content

Commit

Permalink
avoid getting all params
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Dec 18, 2024
1 parent 21acc35 commit b9ac44a
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 @@ -17,7 +17,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, evmKeeper); err != nil {
return nil, err
Expand Down

0 comments on commit b9ac44a

Please sign in to comment.