aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-watcher/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-11-14 22:38:21 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-11-14 22:41:58 +0800
commitb0e9f5803327f5cbd4ca0cbee7e9217c46a3f1ba (patch)
treeb72735ba7723c209e0d7cc0b3d458254686044f7 /packages/order-watcher/src
parent4fc457b78b30e761164eac26fe5f1ebcddd11f7d (diff)
downloaddexon-sol-tools-b0e9f5803327f5cbd4ca0cbee7e9217c46a3f1ba.tar
dexon-sol-tools-b0e9f5803327f5cbd4ca0cbee7e9217c46a3f1ba.tar.gz
dexon-sol-tools-b0e9f5803327f5cbd4ca0cbee7e9217c46a3f1ba.tar.bz2
dexon-sol-tools-b0e9f5803327f5cbd4ca0cbee7e9217c46a3f1ba.tar.lz
dexon-sol-tools-b0e9f5803327f5cbd4ca0cbee7e9217c46a3f1ba.tar.xz
dexon-sol-tools-b0e9f5803327f5cbd4ca0cbee7e9217c46a3f1ba.tar.zst
dexon-sol-tools-b0e9f5803327f5cbd4ca0cbee7e9217c46a3f1ba.zip
Fix a bug in an order-watcher order removal when maker token is ZRX
Diffstat (limited to 'packages/order-watcher/src')
-rw-r--r--packages/order-watcher/src/order_watcher/dependent_order_hashes_tracker.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/order-watcher/src/order_watcher/dependent_order_hashes_tracker.ts b/packages/order-watcher/src/order_watcher/dependent_order_hashes_tracker.ts
index 1ec568a9b..4c8585985 100644
--- a/packages/order-watcher/src/order_watcher/dependent_order_hashes_tracker.ts
+++ b/packages/order-watcher/src/order_watcher/dependent_order_hashes_tracker.ts
@@ -89,7 +89,9 @@ export class DependentOrderHashesTracker {
(decodedMakerAssetData as ERC721AssetData).tokenId,
);
}
- this._removeFromERC20DependentOrderhashes(signedOrder, this._zrxTokenAddress);
+ if ((decodedMakerAssetData as ERC20AssetData).tokenAddress !== this._zrxTokenAddress) {
+ this._removeFromERC20DependentOrderhashes(signedOrder, this._zrxTokenAddress);
+ }
this._removeFromMakerDependentOrderhashes(signedOrder);
}
private _getDependentOrderHashesByERC20AssetData(makerAddress: string, erc20AssetData: string): string[] {