Merge PR #3522: get rid of double negatives: IsNotNegative -> IsAnyNegative
This commit is contained in:
committed by
Jack Zampolin
parent
17c84ab34a
commit
b63b6254c8
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user