diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-06-10 01:36:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-10 01:36:42 +0800 |
commit | 14d7e6bbbe62527fdd90397f83bbd3f9af4187b4 (patch) | |
tree | 7f1beb3a2409a86a97aa010988724a6ba234f4e0 /src | |
parent | 800788eca4299f69930a0030b2a0e0e7eaadcace (diff) | |
parent | af36ceb0b8f2d8c734b15158e69ba7bfb5fdc5a4 (diff) | |
download | dexon-sol-tools-14d7e6bbbe62527fdd90397f83bbd3f9af4187b4.tar dexon-sol-tools-14d7e6bbbe62527fdd90397f83bbd3f9af4187b4.tar.gz dexon-sol-tools-14d7e6bbbe62527fdd90397f83bbd3f9af4187b4.tar.bz2 dexon-sol-tools-14d7e6bbbe62527fdd90397f83bbd3f9af4187b4.tar.lz dexon-sol-tools-14d7e6bbbe62527fdd90397f83bbd3f9af4187b4.tar.xz dexon-sol-tools-14d7e6bbbe62527fdd90397f83bbd3f9af4187b4.tar.zst dexon-sol-tools-14d7e6bbbe62527fdd90397f83bbd3f9af4187b4.zip |
Merge branch 'master' into subscribe-async-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 [ |