aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-10 11:58:06 +0800
committerFabio Berger <me@fabioberger.com>2017-11-10 11:58:06 +0800
commit1b145617482486cac3e9d0f9f32b18f6dd58a626 (patch)
tree525435f8145d9ff90e1350a366832dc405ddde2d
parent27519e1dfa882d6b8b8a3febf3bea88be845e48f (diff)
downloaddexon-sol-tools-1b145617482486cac3e9d0f9f32b18f6dd58a626.tar
dexon-sol-tools-1b145617482486cac3e9d0f9f32b18f6dd58a626.tar.gz
dexon-sol-tools-1b145617482486cac3e9d0f9f32b18f6dd58a626.tar.bz2
dexon-sol-tools-1b145617482486cac3e9d0f9f32b18f6dd58a626.tar.lz
dexon-sol-tools-1b145617482486cac3e9d0f9f32b18f6dd58a626.tar.xz
dexon-sol-tools-1b145617482486cac3e9d0f9f32b18f6dd58a626.tar.zst
dexon-sol-tools-1b145617482486cac3e9d0f9f32b18f6dd58a626.zip
remove no longer needed arg
-rw-r--r--test/order_state_watcher_test.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/order_state_watcher_test.ts b/test/order_state_watcher_test.ts
index 4701f39d4..72b481ad3 100644
--- a/test/order_state_watcher_test.ts
+++ b/test/order_state_watcher_test.ts
@@ -42,7 +42,6 @@ describe('OrderStateWatcher', () => {
let web3Wrapper: Web3Wrapper;
let signedOrder: SignedOrder;
const fillableAmount = new BigNumber(5);
- const numConfirmations = 0;
before(async () => {
web3 = web3Factory.create();
zeroEx = new ZeroEx(web3.currentProvider);
@@ -217,7 +216,7 @@ describe('OrderStateWatcher', () => {
expect(invalidOrderState.error).to.be.equal(ExchangeContractErrs.OrderRemainingFillAmountZero);
done();
});
- zeroEx.orderStateWatcher.subscribe(callback, numConfirmations);
+ zeroEx.orderStateWatcher.subscribe(callback);
const shouldThrowOnInsufficientBalanceOrAllowance = true;
await zeroEx.exchange.cancelOrderAsync(signedOrder, fillableAmount);
@@ -244,7 +243,7 @@ describe('OrderStateWatcher', () => {
expect(orderRelevantState.canceledTakerTokenAmount).to.be.bignumber.equal(cancelAmountInBaseUnits);
done();
});
- zeroEx.orderStateWatcher.subscribe(callback, numConfirmations);
+ zeroEx.orderStateWatcher.subscribe(callback);
await zeroEx.exchange.cancelOrderAsync(signedOrder, cancelAmountInBaseUnits);
})().catch(done);
});