aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-09 23:22:29 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-10 03:11:46 +0800
commit1351e02065c9b6dca3be4827153fe2a0911fcca4 (patch)
treed5f50293f046dd8e953b64d1f2d310bbdb82fd03
parent4f030ac45c39a30da4f058284b52301d4422a595 (diff)
downloaddexon-sol-tools-1351e02065c9b6dca3be4827153fe2a0911fcca4.tar
dexon-sol-tools-1351e02065c9b6dca3be4827153fe2a0911fcca4.tar.gz
dexon-sol-tools-1351e02065c9b6dca3be4827153fe2a0911fcca4.tar.bz2
dexon-sol-tools-1351e02065c9b6dca3be4827153fe2a0911fcca4.tar.lz
dexon-sol-tools-1351e02065c9b6dca3be4827153fe2a0911fcca4.tar.xz
dexon-sol-tools-1351e02065c9b6dca3be4827153fe2a0911fcca4.tar.zst
dexon-sol-tools-1351e02065c9b6dca3be4827153fe2a0911fcca4.zip
Remove check for now, we need a more robust check
-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);