From b9ac44ac6fa0eadce751694db341e5094ba993ab Mon Sep 17 00:00:00 2001 From: Sergi Rene Date: Wed, 18 Dec 2024 12:38:52 +0100 Subject: [PATCH] avoid getting all params --- app/upgrades/drs-3/upgrade.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/upgrades/drs-3/upgrade.go b/app/upgrades/drs-3/upgrade.go index 6e880e8..6e97cfb 100644 --- a/app/upgrades/drs-3/upgrade.go +++ b/app/upgrades/drs-3/upgrade.go @@ -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