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