aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-09 23:22:29 +0800
committerFabio Berger <me@fabioberger.com>2017-11-09 23:22:29 +0800
commit04e01997906b0859dc920c8acb1b92993028016a (patch)
tree4cec2815d58fa278f93b49fa605b8d2d895f8361 /src
parent453f3405a7069bce2cefabdc26c5b1d5ca834981 (diff)
downloaddexon-sol-tools-04e01997906b0859dc920c8acb1b92993028016a.tar
dexon-sol-tools-04e01997906b0859dc920c8acb1b92993028016a.tar.gz
dexon-sol-tools-04e01997906b0859dc920c8acb1b92993028016a.tar.bz2
dexon-sol-tools-04e01997906b0859dc920c8acb1b92993028016a.tar.lz
dexon-sol-tools-04e01997906b0859dc920c8acb1b92993028016a.tar.xz
dexon-sol-tools-04e01997906b0859dc920c8acb1b92993028016a.tar.zst
dexon-sol-tools-04e01997906b0859dc920c8acb1b92993028016a.zip
Remove check for now, we need a more robust check
Diffstat (limited to 'src')
-rw-r--r--src/mempool/order_state_watcher.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mempool/order_state_watcher.ts b/src/mempool/order_state_watcher.ts
index 436f86554..dc24d5b4a 100644
--- a/src/mempool/order_state_watcher.ts
+++ b/src/mempool/order_state_watcher.ts
@@ -58,9 +58,6 @@ export class OrderStateWatcher {
}
public removeOrder(signedOrder: SignedOrder): void {
assert.doesConformToSchema('signedOrder', signedOrder, schemas.signedOrderSchema);
- if (_.isUndefined(this._dependentOrderHashes[signedOrder.maker][signedOrder.makerTokenAddress])) {
- return; // noop if user tries to remove order that wasn't added
- }
const orderHash = ZeroEx.getOrderHashHex(signedOrder);
delete this._orders[orderHash];
this._dependentOrderHashes[signedOrder.maker][signedOrder.makerTokenAddress].delete(orderHash);