diff --git a/app/upgrades/v300/constants.go b/app/upgrades/v300/constants.go index afb13b632..a97a83207 100644 --- a/app/upgrades/v300/constants.go +++ b/app/upgrades/v300/constants.go @@ -16,5 +16,8 @@ var ( // the portion of a chain's total stake can be liquid GlobalLiquidStakingCap = sdk.MustNewDecFromStr("0.25") // 25% + // BeaconContractAddress is the address of the beacon contract + BeaconContractAddress = "" + allowMessages = []string{"*"} ) diff --git a/app/upgrades/v300/upgrades.go b/app/upgrades/v300/upgrades.go index 736542743..0cfe2faf8 100644 --- a/app/upgrades/v300/upgrades.go +++ b/app/upgrades/v300/upgrades.go @@ -71,3 +71,12 @@ func mergeEVM(ctx sdk.Context, box upgrades.Toolbox) error { params.AllowUnprotectedTxs = true return box.EvmKeeper.SetParams(ctx, params) } + +func mergeToken(ctx sdk.Context, box upgrades.Toolbox) error { + ctx.Logger().Info("start to run token module migrations...") + + params := box.TokenKeeper.GetParams(ctx) + params.EnableErc20 = true + params.Beacon = BeaconContractAddress + return box.TokenKeeper.SetParams(ctx, params) +}