diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-06-10 01:41:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-10 01:41:55 +0800 |
commit | b6abfe49904f3aa3c8ec88ab7a00ec4fded9754a (patch) | |
tree | 82f78a66b05b4138ac4d56800b2f37841980d127 /src | |
parent | 604ed46c140c67abde7735b808b79b8d26868d0b (diff) | |
parent | d36930a04dd22bc17758b369241a5602bf1f6936 (diff) | |
download | dexon-sol-tools-b6abfe49904f3aa3c8ec88ab7a00ec4fded9754a.tar dexon-sol-tools-b6abfe49904f3aa3c8ec88ab7a00ec4fded9754a.tar.gz dexon-sol-tools-b6abfe49904f3aa3c8ec88ab7a00ec4fded9754a.tar.bz2 dexon-sol-tools-b6abfe49904f3aa3c8ec88ab7a00ec4fded9754a.tar.lz dexon-sol-tools-b6abfe49904f3aa3c8ec88ab7a00ec4fded9754a.tar.xz dexon-sol-tools-b6abfe49904f3aa3c8ec88ab7a00ec4fded9754a.tar.zst dexon-sol-tools-b6abfe49904f3aa3c8ec88ab7a00ec4fded9754a.zip |
Merge branch 'master' into schema-tests
Diffstat (limited to 'src')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index 5473e2565..214a19df9 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -349,11 +349,10 @@ export class ExchangeWrapper extends ContractWrapper { orderFillOrKillRequestsSchema, ); const exchangeInstance = await this.getExchangeContractAsync(); - _.each(orderFillOrKillRequests, request => { - this.validateFillOrKillOrderAndThrowIfInvalidAsync(request.signedOrder, - exchangeInstance.address, - request.fillTakerAmount); - }); + for (const request of orderFillOrKillRequests) { + await this.validateFillOrKillOrderAndThrowIfInvalidAsync(request.signedOrder, exchangeInstance.address, + request.fillTakerAmount); + } const orderAddressesValuesAndTakerTokenFillAmounts = _.map(orderFillOrKillRequests, request => { return [ |