aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2017-09-28 07:34:01 +0800
committerBrandon Millman <brandon.millman@gmail.com>2017-09-28 08:12:38 +0800
commit333665370fda26753e137f5b11464493b7d5880c (patch)
tree631672ca7ae8f159205bc51a5f7ea737a721a0bb /src
parent1d4506427fd3eb277f42c02887f33265dac6a783 (diff)
downloaddexon-0x-contracts-333665370fda26753e137f5b11464493b7d5880c.tar.gz
dexon-0x-contracts-333665370fda26753e137f5b11464493b7d5880c.tar.zst
dexon-0x-contracts-333665370fda26753e137f5b11464493b7d5880c.zip
Add tests
Diffstat (limited to 'src')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index c7d095ac7..2ab1635c1 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -568,11 +568,6 @@ export class ExchangeWrapper extends ContractWrapper {
this.validateCancelOrderThrowIfInvalidAsync(
cancellationRequest.order, cancellationRequest.takerTokenCancelAmount)));
}
- for (const cancellationRequest of orderCancellationRequests) {
- await this.validateCancelOrderThrowIfInvalidAsync(
- cancellationRequest.order, cancellationRequest.takerTokenCancelAmount,
- );
- }
if (_.isEmpty(orderCancellationRequests)) {
throw new Error(ExchangeContractErrs.BatchOrdersMustHaveAtLeastOneItem);
}