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

bank: additional denom metadata test case #8612

Merged
merged 1 commit into from
Feb 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bank: additional denom metadata test case
  • Loading branch information
fedekunze committed Feb 17, 2021
commit 12bdf730ebd49720a8903bfab2d56c9e867b8662
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