diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-09 21:52:18 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-09 21:52:18 +0800 |
commit | 9ffd36d57f2926629f8ca7e48ede87b2a6929ff9 (patch) | |
tree | 1834ef49d711b3813490eb64970f93c768a66e9e /src | |
parent | dca572e74442534dc9f1bb853b2d8e9fe018639a (diff) | |
download | dexon-sol-tools-9ffd36d57f2926629f8ca7e48ede87b2a6929ff9.tar dexon-sol-tools-9ffd36d57f2926629f8ca7e48ede87b2a6929ff9.tar.gz dexon-sol-tools-9ffd36d57f2926629f8ca7e48ede87b2a6929ff9.tar.bz2 dexon-sol-tools-9ffd36d57f2926629f8ca7e48ede87b2a6929ff9.tar.lz dexon-sol-tools-9ffd36d57f2926629f8ca7e48ede87b2a6929ff9.tar.xz dexon-sol-tools-9ffd36d57f2926629f8ca7e48ede87b2a6929ff9.tar.zst dexon-sol-tools-9ffd36d57f2926629f8ca7e48ede87b2a6929ff9.zip |
Use for of
Diffstat (limited to 'src')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 7fedf3183..b1b21f873 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -282,10 +282,10 @@ export class ExchangeWrapper extends ContractWrapper { orderFillOrKillRequestsSchema, ); const exchangeInstance = await this.getExchangeContractAsync(); - _.each(orderFillOrKillRequests, async request => { + for (const request of orderFillOrKillRequests) { await this.validateFillOrKillOrderAndThrowIfInvalidAsync(request.signedOrder, exchangeInstance.address, request.fillTakerAmount); - }); + } const orderAddressesValuesAndTakerTokenFillAmounts = _.map(orderFillOrKillRequests, request => { return [ |