Cosmos-sdk: Ignore casing in denominations

Created on 10 Dec 2018  ·  1Comment  ·  Source: cosmos/cosmos-sdk

Summary

When I create a balance [{denom: 'stake', amount: '100'}] in the genesis, gaiad gentx will fail because the user has no STAKE. I propose we ignore casing in the denomination to reduce confusion.
The same goes for transactions where I need to define the denomination. If it is not uppercase the transaction will fail.

Problem Definition

Proposal


For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned
CLI types

Most helpful comment

I agree that it makes sense to prevent the either lowercase or uppercase - I guess making it all caps makes sense as tokens are usually listed as all caps 👍

>All comments

I agree that it makes sense to prevent the either lowercase or uppercase - I guess making it all caps makes sense as tokens are usually listed as all caps 👍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ValarDragon picture ValarDragon  ·  3Comments

hendrikhofstadt picture hendrikhofstadt  ·  3Comments

rigelrozanski picture rigelrozanski  ·  3Comments

fedekunze picture fedekunze  ·  3Comments

ValarDragon picture ValarDragon  ·  3Comments