From 23ecd7a07f42132656b31af6708034dd209a752c Mon Sep 17 00:00:00 2001 From: Sergi Rene Date: Thu, 12 Dec 2024 18:57:39 +0100 Subject: [PATCH] fix(drs): drs-2 migration default gas denom fix (#404) --- app/upgrades/drs-2/upgrade.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/upgrades/drs-2/upgrade.go b/app/upgrades/drs-2/upgrade.go index 137226d7..7846c35c 100644 --- a/app/upgrades/drs-2/upgrade.go +++ b/app/upgrades/drs-2/upgrade.go @@ -7,7 +7,6 @@ import ( rollappparamskeeper "github.com/dymensionxyz/dymension-rdk/x/rollappparams/keeper" rollappparamstypes "github.com/dymensionxyz/dymension-rdk/x/rollappparams/types" evmkeeper "github.com/evmos/evmos/v12/x/evm/keeper" - evmtypes "github.com/evmos/evmos/v12/x/evm/types" ) func CreateUpgradeHandler( @@ -28,9 +27,9 @@ func CreateUpgradeHandler( return nil, err } //migrate evm params with missing gasDenom - evmOldParams := evmKeeper.GetParams(ctx) - evmOldParams.GasDenom = evmtypes.DefaultParams().GasDenom - err = evmKeeper.SetParams(ctx, evmOldParams) + evmParams := evmKeeper.GetParams(ctx) + evmParams.GasDenom = evmParams.EvmDenom + err = evmKeeper.SetParams(ctx, evmParams) if err != nil { return nil, err }