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

Add SetMetadata to tokenfactory #963

Merged
merged 1 commit into from
Jul 23, 2023
Merged

Add SetMetadata to tokenfactory #963

merged 1 commit into from
Jul 23, 2023

Conversation

LCyson
Copy link
Contributor

@LCyson LCyson commented Jul 7, 2023

Describe your changes and provide context

This PR allows the admin of a tokenfactory denom to set its bank.Metadata, thereby changing its display units, name, and symbol.

Testing performed to validate your change

  • unit tests
  • e2e test

@LCyson LCyson requested review from yzang2019 and Kbhat1 July 7, 2023 05:07
@Kbhat1
Copy link
Contributor

Kbhat1 commented Jul 10, 2023

@LCyson can we add a cli command for set denom metadata in tokenfactory

@LCyson
Copy link
Contributor Author

LCyson commented Jul 22, 2023

@LCyson can we add a cli command for set denom metadata in tokenfactory

Metadata request contains too many fields for cli command, users will be recommended to send rpc request to update

@Kbhat1
Copy link
Contributor

Kbhat1 commented Jul 22, 2023

@LCyson can we add a cli command for set denom metadata in tokenfactory

Metadata request contains too many fields for cli command, users will be recommended to send rpc request to update

You don’t need to specify all arguments directly via cli. Instead we can read in a json file which specifies the full metadata. Take a look at how we do this for register pair tx

@LCyson LCyson merged commit 01c89bc into main Jul 23, 2023
@LCyson LCyson deleted the setmetadata branch July 23, 2023 16:08
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.

3 participants