fix(x/bank): Better handling of negative spendable balances (backport #21407) (#21639)

Co-authored-by: Daniel Wedul <github@wedul.com>
This commit is contained in:
mergify[bot]
2024-09-10 21:01:05 +02:00
committed by GitHub
co-authored by Daniel Wedul
parent df020efd00
commit cdce191f37
5 changed files with 67 additions and 28 deletions
@@ -266,7 +266,7 @@ func TestGRPCQuerySpendableBalances(t *testing.T) {
assert.NilError(t, err)
req := banktypes.NewQuerySpendableBalancesRequest(addr1Str, nil)
testdata.DeterministicIterations(t, f.ctx, req, f.queryClient.SpendableBalances, 1777, false)
testdata.DeterministicIterations(t, f.ctx, req, f.queryClient.SpendableBalances, 1420, false)
}
func TestGRPCQueryTotalSupply(t *testing.T) {