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
@@ -46,7 +46,7 @@ func (tx StdTx) ValidateBasic() sdk.Error {
if tx.Fee.Gas > maxGasWanted {
return sdk.ErrGasOverflow(fmt.Sprintf("invalid gas supplied; %d > %d", tx.Fee.Gas, maxGasWanted))
}
if !tx.Fee.Amount.IsNotNegative() {
if tx.Fee.Amount.IsAnyNegative() {
return sdk.ErrInsufficientFee(fmt.Sprintf("invalid fee %s amount provided", tx.Fee.Amount))
}
if len(stdSigs) == 0 {