Merge PR #3522: get rid of double negatives: IsNotNegative -> IsAnyNegative

This commit is contained in:
Alessio Treglia
2019-02-06 14:45:15 -08:00
committed by Jack Zampolin
parent 17c84ab34a
commit b63b6254c8
9 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ func handleFrom(store sdk.KVStore, from sdk.AccAddress, amt sdk.Coins) sdk.Resul
senderCoins := acc.Coins.Minus(amt)
// If any coin has negative amount, return insufficient coins error.
if !senderCoins.IsNotNegative() {
if senderCoins.IsAnyNegative() {
return sdk.ErrInsufficientCoins("Insufficient coins in account").Result()
}