Upgrade bignumber.js version

This commit is contained in:
Leonid Logvinov
2019-01-14 15:50:32 +01:00
parent f570f80674
commit c3afc13dd6
59 changed files with 314 additions and 308 deletions

View File

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