aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-07-16 20:54:36 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-07-16 20:54:36 +0800
commit90d72a36834822dd7475ee453e285bc39c1100c4 (patch)
treed5d09c3f9fe51f39a38fee397623f44ac4017e2c
parentf9bcf936edbb74acce145af94d23b4945e699f63 (diff)
downloaddexon-sol-tools-90d72a36834822dd7475ee453e285bc39c1100c4.tar
dexon-sol-tools-90d72a36834822dd7475ee453e285bc39c1100c4.tar.gz
dexon-sol-tools-90d72a36834822dd7475ee453e285bc39c1100c4.tar.bz2
dexon-sol-tools-90d72a36834822dd7475ee453e285bc39c1100c4.tar.lz
dexon-sol-tools-90d72a36834822dd7475ee453e285bc39c1100c4.tar.xz
dexon-sol-tools-90d72a36834822dd7475ee453e285bc39c1100c4.tar.zst
dexon-sol-tools-90d72a36834822dd7475ee453e285bc39c1100c4.zip
Await the promise in order watcher assertion
-rw-r--r--packages/order-watcher/src/order_watcher/order_watcher.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/order-watcher/src/order_watcher/order_watcher.ts b/packages/order-watcher/src/order_watcher/order_watcher.ts
index 264b3d18c..91fa85684 100644
--- a/packages/order-watcher/src/order_watcher/order_watcher.ts
+++ b/packages/order-watcher/src/order_watcher/order_watcher.ts
@@ -145,7 +145,7 @@ export class OrderWatcher {
public addOrder(signedOrder: SignedOrder): void {
assert.doesConformToSchema('signedOrder', signedOrder, schemas.signedOrderSchema);
const orderHash = orderHashUtils.getOrderHashHex(signedOrder);
- assert.isValidSignatureAsync(this._provider, orderHash, signedOrder.signature, signedOrder.makerAddress);
+ await assert.isValidSignatureAsync(this._provider, orderHash, signedOrder.signature, signedOrder.makerAddress);
const expirationUnixTimestampMs = signedOrder.expirationTimeSeconds.times(MILLISECONDS_IN_A_SECOND);
this._expirationWatcher.addOrder(orderHash, expirationUnixTimestampMs);