adding 0 value coin test case

This commit is contained in:
Spoorthi 2021-08-03 19:44:03 +02:00
parent 40d22c7ab3
commit 2468b64cff
1 changed files with 11 additions and 0 deletions

View File

@ -64,6 +64,17 @@ func TestBalanceValidate(t *testing.T) {
},
true,
},
{
"0 value coin",
bank.Balance{
Address: "cosmos1yq8lgssgxlx9smjhes6ryjasmqmd3ts2559g0t",
Coins: sdk.Coins{
sdk.NewInt64Coin("atom", 0),
sdk.NewInt64Coin("zatom", 2),
},
},
true,
},
{
"unsorted coins",
bank.Balance{