Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: specify utia as denom for gov module genesis #1484

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Mar 13, 2023

Fixes an issue identified in https://github.com/celestiaorg/itn-doc/issues/168

Testing

Verified genesis.json contains utia in the gov module in this diff

@rootulp rootulp self-assigned this Mar 13, 2023
@rootulp rootulp marked this pull request as ready for review March 13, 2023 20:58
Comment on lines +22 to +26
// HACKHACK explicitly ignore the error returned from json.Unmarshal because
// the error is a failure to unmarshal the string StartingProposalId as a
// uint which is unrelated to the test here.
//nolint:errcheck
json.Unmarshal(raw, &govGenesisState)
Copy link
Member

Choose a reason for hiding this comment

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

[optional]
this comment is good but also why not explicitly ignore the error and get rid of the no lint?

Suggested change
// HACKHACK explicitly ignore the error returned from json.Unmarshal because
// the error is a failure to unmarshal the string StartingProposalId as a
// uint which is unrelated to the test here.
//nolint:errcheck
json.Unmarshal(raw, &govGenesisState)
// HACKHACK explicitly ignore the error returned from json.Unmarshal because
// the error is a failure to unmarshal the string StartingProposalId as a
// uint which is unrelated to the test here.
_ = json.Unmarshal(raw, &govGenesisState)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure how.

Screenshot 2023-03-13 at 6 44 03 PM

Screenshot 2023-03-13 at 6 43 48 PM

Copy link
Member

Choose a reason for hiding this comment

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

we just need to get rid of the : in the first image since we're not declaring anything

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oof how did I miss that. Can do in a follow-up PR.

Copy link
Member

Choose a reason for hiding this comment

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

nah who care lol

@rootulp rootulp merged commit 1959ca1 into celestiaorg:main Mar 13, 2023
@rootulp rootulp mentioned this pull request Mar 14, 2023
rootulp added a commit that referenced this pull request Mar 14, 2023
@rootulp rootulp deleted the rp/gov-genesis-main branch March 14, 2023 15:01
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.

None yet

2 participants