aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-10 06:57:41 +0800
committerFabio Berger <me@fabioberger.com>2017-11-10 06:57:41 +0800
commit322e054f1ab3f1325c203f61f1edb2f56867fc6d (patch)
treeb7eab25db432925c874af635215e5fa8ab5d4138 /src
parent7f606e1e6493b36ec4fbfd738a0e98ce89afef2d (diff)
downloaddexon-sol-tools-322e054f1ab3f1325c203f61f1edb2f56867fc6d.tar
dexon-sol-tools-322e054f1ab3f1325c203f61f1edb2f56867fc6d.tar.gz
dexon-sol-tools-322e054f1ab3f1325c203f61f1edb2f56867fc6d.tar.bz2
dexon-sol-tools-322e054f1ab3f1325c203f61f1edb2f56867fc6d.tar.lz
dexon-sol-tools-322e054f1ab3f1325c203f61f1edb2f56867fc6d.tar.xz
dexon-sol-tools-322e054f1ab3f1325c203f61f1edb2f56867fc6d.tar.zst
dexon-sol-tools-322e054f1ab3f1325c203f61f1edb2f56867fc6d.zip
comment improvements
Diffstat (limited to 'src')
-rw-r--r--src/order_watcher/order_state_watcher.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts
index 8eb936077..f6ce4edb7 100644
--- a/src/order_watcher/order_state_watcher.ts
+++ b/src/order_watcher/order_state_watcher.ts
@@ -73,15 +73,15 @@ export class OrderStateWatcher {
assert.doesConformToSchema('orderHash', orderHash, schemas.orderHashSchema);
const signedOrder = this._orders[orderHash];
if (_.isUndefined(signedOrder)) {
- return;
+ return; // noop
}
delete this._orders[orderHash];
this._dependentOrderHashes[signedOrder.maker][signedOrder.makerTokenAddress].delete(orderHash);
// We currently do not remove the maker/makerToken keys from the mapping when all orderHashes removed
}
/**
- * Starts an orderStateWatcher subscription. The callback will be notified every time a watched order's
- * backing blockchain state has changed. This is a call-to-action for the caller to re-validate the order
+ * Starts an orderStateWatcher subscription. The callback will be called every time a watched order's
+ * backing blockchain state has changed. This is a call-to-action for the caller to re-validate the order.
* @param callback Receives the orderHash of the order that should be re-validated, together.
* with all the order-relevant blockchain state needed to re-validate the order
* @param numConfirmations Number of confirmed blocks deeps you want to run the orderWatcher from. Passing