diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/assert.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/assert.ts b/src/utils/assert.ts index 48aed6ad3..667b41b7b 100644 --- a/src/utils/assert.ts +++ b/src/utils/assert.ts @@ -12,6 +12,7 @@ export const assert = { this.assert(isBigNumber, this.typeAssertionMessage(variableName, 'BigNumber', value)); }, isValidBaseUnitAmount(variableName: string, value: BigNumber) { + assert.isBigNumber(variableName, value); const hasDecimals = value.decimalPlaces() !== 0; this.assert( !hasDecimals, `${variableName} should be in baseUnits (no decimals), found value: ${value.toNumber()}`, |