Skip to content

Commit

Permalink
fix(drs): drs-2 migration default gas denom fix (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
srene authored Dec 12, 2024
1 parent da6e561 commit 23ecd7a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/upgrades/drs-2/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
}
Expand Down

0 comments on commit 23ecd7a

Please sign in to comment.