From 66b91ee7c7c9f916282d6cd1fffdfebf4cdf74ab Mon Sep 17 00:00:00 2001 From: Spoorthi <9302666+spoo-bar@users.noreply.github.com> Date: Wed, 4 Aug 2021 14:54:01 +0200 Subject: [PATCH] added valid sorted coin testcase --- x/bank/types/balance_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/x/bank/types/balance_test.go b/x/bank/types/balance_test.go index fd6b72a3a..10ee2a74b 100644 --- a/x/bank/types/balance_test.go +++ b/x/bank/types/balance_test.go @@ -87,6 +87,18 @@ func TestBalanceValidate(t *testing.T) { }, true, }, + { + "valid sorted coins", + bank.Balance{ + Address: "cosmos1yq8lgssgxlx9smjhes6ryjasmqmd3ts2559g0t", + Coins: sdk.Coins{ + sdk.NewInt64Coin("atom", 2), + sdk.NewInt64Coin("batom", 12), + sdk.NewInt64Coin("zatom", 2), + }, + }, + false, + }, } for _, tc := range testCases {