Skip to content

Commit

Permalink
bank: additional denom metadata test case (#8612)
Browse files Browse the repository at this point in the history
  • Loading branch information
fedekunze authored and dudong2 committed Mar 11, 2022
1 parent 1ee715a commit 754dad8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions x/bank/types/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ func TestMetadataValidate(t *testing.T) {
},
false,
},
{
"base coin is display coin",
types.Metadata{
Description: "The native staking token of the Cosmos Hub.",
DenomUnits: []*types.DenomUnit{
{"atom", uint32(0), []string{"ATOM"}},
},
Base: "atom",
Display: "atom",
},
false,
},
{"empty metadata", types.Metadata{}, true},
{
"invalid base denom",
Expand Down

0 comments on commit 754dad8

Please sign in to comment.