diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 18:14:18 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-01-15 23:25:25 +0800 |
commit | de78d6a8ad6104a044e5b56251c47a41b63bf013 (patch) | |
tree | 0f7f53dd59cafa989c115140212f1346c3d0acd4 /packages | |
parent | a085654aba41d869c617f9f0151e7c230fcca573 (diff) | |
download | dexon-0x-contracts-de78d6a8ad6104a044e5b56251c47a41b63bf013.tar.gz dexon-0x-contracts-de78d6a8ad6104a044e5b56251c47a41b63bf013.tar.zst dexon-0x-contracts-de78d6a8ad6104a044e5b56251c47a41b63bf013.zip |
Fix isBigNumber check for the new version
Diffstat (limited to 'packages')
-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 { |