aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2019-01-15 18:32:53 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-01-15 23:25:25 +0800
commite84232cce8b1a1b1e3607d341baa688613dcefde (patch)
tree848fda704174e8d559be41021110c6c2c7b03b0d /packages/order-utils
parentde78d6a8ad6104a044e5b56251c47a41b63bf013 (diff)
downloaddexon-sol-tools-e84232cce8b1a1b1e3607d341baa688613dcefde.tar
dexon-sol-tools-e84232cce8b1a1b1e3607d341baa688613dcefde.tar.gz
dexon-sol-tools-e84232cce8b1a1b1e3607d341baa688613dcefde.tar.bz2
dexon-sol-tools-e84232cce8b1a1b1e3607d341baa688613dcefde.tar.lz
dexon-sol-tools-e84232cce8b1a1b1e3607d341baa688613dcefde.tar.xz
dexon-sol-tools-e84232cce8b1a1b1e3607d341baa688613dcefde.tar.zst
dexon-sol-tools-e84232cce8b1a1b1e3607d341baa688613dcefde.zip
Use new check for isBigNumber
Diffstat (limited to 'packages/order-utils')
-rw-r--r--packages/order-utils/src/crypto.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/order-utils/src/crypto.ts b/packages/order-utils/src/crypto.ts
index 0f1504a72..8b835ff48 100644
--- a/packages/order-utils/src/crypto.ts
+++ b/packages/order-utils/src/crypto.ts
@@ -1,3 +1,4 @@
+import { BigNumber } from '@0x/utils';
import BN = require('bn.js');
import ABI = require('ethereumjs-abi');
import ethUtil = require('ethereumjs-util');
@@ -24,7 +25,7 @@ export const crypto = {
const isNumber = _.isFinite(arg);
if (isNumber) {
argTypes.push('uint8');
- } else if (arg.isBigNumber) {
+ } else if (BigNumber.isBigNumber(arg)) {
argTypes.push('uint256');
const base = 10;
args[i] = new BN(arg.toString(base), base);