Skip to content

Fix missing DenomUnits in v6 denom metadata migration#103

Merged
metalarm10 merged 1 commit intorelease-v6from
john/fix-denom-metadata
Mar 11, 2026
Merged

Fix missing DenomUnits in v6 denom metadata migration#103
metalarm10 merged 1 commit intorelease-v6from
john/fix-denom-metadata

Conversation

@metalarm10
Copy link
Contributor

@metalarm10 metalarm10 commented Mar 11, 2026

Description

The v6 upgrade updated Display to "tx" but missed updating DenomUnits - it still has "core" at exponent 6. This blocks the Cosmos Chain Registry update (cosmos/chain-registry#7564) since the CI requires Display to match a DenomUnits entry.

This adds a new upgrade handler v6_fix_denom_metadata that renames DenomUnits[exponent=6] from "core" to "tx" to match Display.

Will be Released as v6.1.0.

Reviewers checklist:

  • Try to write more meaningful comments with clear actions to be taken.
  • Nit-picking should be unblocking. Focus on core issues.

Authors checklist

  • Provide a concise and meaningful description
  • Review the code yourself first, before making the PR.
  • Annotate your PR in places that require explanation.
  • Think and try to split the PR to smaller PR if it is big.

This change is Reviewable

@metalarm10 metalarm10 requested a review from a team as a code owner March 11, 2026 10:09
@metalarm10 metalarm10 requested review from TxCorpi0x, masihyeganeh, miladz68 and ysv and removed request for a team March 11, 2026 10:09
Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miladz68 reviewed 4 files and all commit messages, and made 4 comments.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on masihyeganeh, metalarm10, and TxCorpi0x).


app/upgrade/v6_fix_denom_metadata/upgrade.go line 1 at r1 (raw file):

package v6fixdenommetadata

I have 3 comments on this file, based on the previous way of how we handled these types of upgrades, containing patches of changes. feel free to ignore if there is specific reason to do so.


app/upgrade/v6_fix_denom_metadata/upgrade.go line 3 at r1 (raw file):

package v6fixdenommetadata

import (

the folder structure should be upgrade/v6/upgrade.go and the pacakge should still be called v6.


app/upgrade/v6_fix_denom_metadata/upgrade.go line 15 at r1 (raw file):

// Name defines the upgrade name.
const Name = "v6_fix_denom_metadata"

we should call the upgrade something more general, like v6patch1 orv6_1.


app/upgrade/v6_fix_denom_metadata/upgrade.go line 18 at r1 (raw file):

// New makes an upgrade handler for v6_fix_denom_metadata upgrade.
func New(

we should call this NewV6Pach1

@ysv ysv requested a review from miladz68 March 11, 2026 11:10
Copy link
Contributor

@ysv ysv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ysv reviewed 4 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on masihyeganeh, metalarm10, miladz68, and TxCorpi0x).


app/upgrade/v6_fix_denom_metadata/upgrade.go line 1 at r1 (raw file):

Previously, miladz68 (milad) wrote…

I have 3 comments on this file, based on the previous way of how we handled these types of upgrades, containing patches of changes. feel free to ignore if there is specific reason to do so.

Yeah these are reasonable comments.
But because of time-constrain it is ok to keep it as it is.

Copy link
Contributor

@TxCorpi0x TxCorpi0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TxCorpi0x reviewed 4 files and all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on masihyeganeh, metalarm10, and miladz68).

Copy link
Contributor

@TxCorpi0x TxCorpi0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are goting to resolve this issue, we need to make sure this CI script passes
https://github.com/cosmos/chain-registry/actions/runs/22759148426/job/66011597563?pr=7564
The script that needs to pass, it would be good to run the script locally and make sure it passes with a local znet (if possible simply)
https://github.com/cosmos/chain-registry/blob/master/.github/workflows/utility/validate_data.mjs

@TxCorpi0x made 1 comment.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on masihyeganeh, metalarm10, and miladz68).

@metalarm10 metalarm10 merged commit f175764 into release-v6 Mar 11, 2026
10 of 15 checks passed
Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miladz68 resolved 4 discussions.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants