From 3e718631dd2d32c82a87197d9c2ad1d670c277de Mon Sep 17 00:00:00 2001 From: Carlton N Hanna Date: Wed, 1 Nov 2023 15:43:22 -0600 Subject: [PATCH] fix denom setting in markerMetadata --- app/upgrades.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/upgrades.go b/app/upgrades.go index 12e992b958..e52df8dbc8 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -390,13 +390,13 @@ func updateIbcMarkerDenomMetadata(ctx sdk.Context, app *App) { chainID := app.Ics20MarkerHooks.GetChainID(ctx, parts[0], parts[1], app.IBCKeeper) markerMetadata := banktypes.Metadata{ Base: record.GetDenom(), - Name: chainID + "/" + record.GetDenom(), - Display: chainID + "/" + record.GetDenom(), - Description: record.GetDenom() + " from chain " + chainID, + Name: chainID + "/" + denomTrace.BaseDenom, + Display: chainID + "/" + denomTrace.BaseDenom, + Description: denomTrace.BaseDenom + " from chain " + chainID, } err := app.MarkerKeeper.SetDenomMetaData(ctx, markerMetadata, authtypes.NewModuleAddress(types.ModuleName)) if err != nil { - panic(fmt.Sprintf("unable to set denom metadata for %v on chain-id %v: %v", record.GetDenom(), chainID, err)) + panic(fmt.Sprintf("unable to set denom metadata for %v with base denom %v and chain-id %v: %v", record.GetDenom(), denomTrace.BaseDenom, chainID, err)) } } }