aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-21 06:39:34 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-21 06:39:34 +0800
commit3e0371685fe16b7dc96f5f900c0d4531b16370d4 (patch)
tree4f8bb59af73309efd9676aeb680ee09bac8fb157 /packages/0x.js/src
parent3bc3666215d4fdaa6d9db87e065ca5e762df9b25 (diff)
downloaddexon-sol-tools-3e0371685fe16b7dc96f5f900c0d4531b16370d4.tar
dexon-sol-tools-3e0371685fe16b7dc96f5f900c0d4531b16370d4.tar.gz
dexon-sol-tools-3e0371685fe16b7dc96f5f900c0d4531b16370d4.tar.bz2
dexon-sol-tools-3e0371685fe16b7dc96f5f900c0d4531b16370d4.tar.lz
dexon-sol-tools-3e0371685fe16b7dc96f5f900c0d4531b16370d4.tar.xz
dexon-sol-tools-3e0371685fe16b7dc96f5f900c0d4531b16370d4.tar.zst
dexon-sol-tools-3e0371685fe16b7dc96f5f900c0d4531b16370d4.zip
Fix async callbacks
Diffstat (limited to 'packages/0x.js/src')
-rw-r--r--packages/0x.js/src/utils/order_validation_utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/0x.js/src/utils/order_validation_utils.ts b/packages/0x.js/src/utils/order_validation_utils.ts
index f03703c4e..ed723e3d4 100644
--- a/packages/0x.js/src/utils/order_validation_utils.ts
+++ b/packages/0x.js/src/utils/order_validation_utils.ts
@@ -102,7 +102,7 @@ export class OrderValidationUtils {
if (order.takerTokenAmount.eq(unavailableTakerTokenAmount)) {
throw new Error(ExchangeContractErrs.OrderAlreadyCancelledOrFilled);
}
- const currentUnixTimestampSec = utils.getCurrentUnixTimestamp();
+ const currentUnixTimestampSec = utils.getCurrentUnixTimestampSec();
if (order.expirationUnixTimestampSec.lessThan(currentUnixTimestampSec)) {
throw new Error(ExchangeContractErrs.OrderCancelExpired);
}
@@ -150,7 +150,7 @@ export class OrderValidationUtils {
}
}
private validateOrderNotExpiredOrThrow(expirationUnixTimestampSec: BigNumber) {
- const currentUnixTimestampSec = utils.getCurrentUnixTimestamp();
+ const currentUnixTimestampSec = utils.getCurrentUnixTimestampSec();
if (expirationUnixTimestampSec.lessThan(currentUnixTimestampSec)) {
throw new Error(ExchangeContractErrs.OrderFillExpired);
}