diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2017-09-28 07:34:01 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2017-09-28 08:12:38 +0800 |
commit | 333665370fda26753e137f5b11464493b7d5880c (patch) | |
tree | 631672ca7ae8f159205bc51a5f7ea737a721a0bb /src/contract_wrappers | |
parent | 1d4506427fd3eb277f42c02887f33265dac6a783 (diff) | |
download | dexon-sol-tools-333665370fda26753e137f5b11464493b7d5880c.tar dexon-sol-tools-333665370fda26753e137f5b11464493b7d5880c.tar.gz dexon-sol-tools-333665370fda26753e137f5b11464493b7d5880c.tar.bz2 dexon-sol-tools-333665370fda26753e137f5b11464493b7d5880c.tar.lz dexon-sol-tools-333665370fda26753e137f5b11464493b7d5880c.tar.xz dexon-sol-tools-333665370fda26753e137f5b11464493b7d5880c.tar.zst dexon-sol-tools-333665370fda26753e137f5b11464493b7d5880c.zip |
Add tests
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 5 |
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); } |