diff --git a/app/upgrades/v4/upgrades.go b/app/upgrades/v4/upgrades.go index 7b10b709..fe9cbf96 100644 --- a/app/upgrades/v4/upgrades.go +++ b/app/upgrades/v4/upgrades.go @@ -141,6 +141,17 @@ func CreateV4UpgradeHandler( } logger.Info("set clock params") + bootDenom, exist := keepers.BankKeeper.GetDenomMetaData(ctx, "boot") + if exist { + bootDenom.DenomUnits = append(bootDenom.DenomUnits, &banktypes.DenomUnit{ + Denom: "root", + Exponent: 9, + Aliases: []string{"ROOT"}, + }) + keepers.BankKeeper.SetDenomMetaData(ctx, bootDenom) + logger.Info("update boot denom metadata with root token") + } + after := time.Now() ctx.Logger().Info("migration time", "duration_ms", after.Sub(before).Milliseconds())