Should not -> cannot

This commit is contained in:
Jacob Evans 2018-01-18 18:59:47 +11:00
parent cfc868bf4d
commit ceb8a492b1

View File

@ -13,7 +13,7 @@ export const assert = {
isValidBaseUnitAmount(variableName: string, value: BigNumber) { isValidBaseUnitAmount(variableName: string, value: BigNumber) {
assert.isBigNumber(variableName, value); assert.isBigNumber(variableName, value);
const isNegative = value.lessThan(0); const isNegative = value.lessThan(0);
this.assert(!isNegative, `${variableName} should not be a negative number, found value: ${value.toNumber()}` ); this.assert(!isNegative, `${variableName} cannot be a negative number, found value: ${value.toNumber()}` );
const hasDecimals = value.decimalPlaces() !== 0; const hasDecimals = value.decimalPlaces() !== 0;
this.assert( this.assert(
!hasDecimals, !hasDecimals,