bank: additional denom metadata test case (#8612)

This commit is contained in:
Federico Kunze 2021-02-17 20:57:28 -03:00 committed by GitHub
parent abb3dfefa0
commit 53637b607f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -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",