diff options
Diffstat (limited to 'packages/assert')
-rw-r--r-- | packages/assert/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/assert/src/index.ts b/packages/assert/src/index.ts index b9a04686a..741bd78e1 100644 --- a/packages/assert/src/index.ts +++ b/packages/assert/src/index.ts @@ -7,7 +7,7 @@ const HEX_REGEX = /^0x[0-9A-F]*$/i; export const assert = { isBigNumber(variableName: string, value: BigNumber): void { - const isBigNumber = _.isObject(value) && (value as any).isBigNumber; + const isBigNumber = BigNumber.isBigNumber(value); assert.assert(isBigNumber, assert.typeAssertionMessage(variableName, 'BigNumber', value)); }, isValidBaseUnitAmount(variableName: string, value: BigNumber): void { |