aboutsummaryrefslogtreecommitdiffstats
path: root/test/order_state_watcher_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-10 03:23:53 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-10 03:23:53 +0800
commit709fa06af6efc762ccd7a4219b7b52076190831e (patch)
treebacaf340e7504247838f7caeac077afad8d9270b /test/order_state_watcher_test.ts
parent1351e02065c9b6dca3be4827153fe2a0911fcca4 (diff)
downloaddexon-0x-contracts-709fa06af6efc762ccd7a4219b7b52076190831e.tar.gz
dexon-0x-contracts-709fa06af6efc762ccd7a4219b7b52076190831e.tar.zst
dexon-0x-contracts-709fa06af6efc762ccd7a4219b7b52076190831e.zip
Pass orderHash instead of an order to removeOrder and adjust the tests
Diffstat (limited to 'test/order_state_watcher_test.ts')
-rw-r--r--test/order_state_watcher_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/order_state_watcher_test.ts b/test/order_state_watcher_test.ts
index f1b027c40..f5fc5d4ea 100644
--- a/test/order_state_watcher_test.ts
+++ b/test/order_state_watcher_test.ts
@@ -57,7 +57,7 @@ describe('OrderStateWatcher', () => {
afterEach(async () => {
zeroEx.orderStateWatcher.unsubscribe();
const orderHash = ZeroEx.getOrderHashHex(signedOrder);
- zeroEx.orderStateWatcher.removeOrder(signedOrder);
+ zeroEx.orderStateWatcher.removeOrder(orderHash);
});
it('should emit orderStateInvalid when maker allowance set to 0 for watched order', (done: DoneCallback) => {
(async () => {