aboutsummaryrefslogtreecommitdiffstats
path: root/packages/assert
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-15 18:14:18 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-01-15 23:25:25 +0800
commitde78d6a8ad6104a044e5b56251c47a41b63bf013 (patch)
tree0f7f53dd59cafa989c115140212f1346c3d0acd4 /packages/assert
parenta085654aba41d869c617f9f0151e7c230fcca573 (diff)
downloaddexon-sol-tools-de78d6a8ad6104a044e5b56251c47a41b63bf013.tar
dexon-sol-tools-de78d6a8ad6104a044e5b56251c47a41b63bf013.tar.gz
dexon-sol-tools-de78d6a8ad6104a044e5b56251c47a41b63bf013.tar.bz2
dexon-sol-tools-de78d6a8ad6104a044e5b56251c47a41b63bf013.tar.lz
dexon-sol-tools-de78d6a8ad6104a044e5b56251c47a41b63bf013.tar.xz
dexon-sol-tools-de78d6a8ad6104a044e5b56251c47a41b63bf013.tar.zst
dexon-sol-tools-de78d6a8ad6104a044e5b56251c47a41b63bf013.zip
Fix isBigNumber check for the new version
Diffstat (limited to 'packages/assert')
-rw-r--r--packages/assert/src/index.ts2
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 {