aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-09 17:17:32 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-09 17:17:32 +0800
commitdca572e74442534dc9f1bb853b2d8e9fe018639a (patch)
tree5435c6dd642f7a4f89fe6c9d8a04eb92d9e68a4c /src
parentab40123768a3376bd2b36bd0d85a8e476b89dc10 (diff)
downloaddexon-sol-tools-dca572e74442534dc9f1bb853b2d8e9fe018639a.tar
dexon-sol-tools-dca572e74442534dc9f1bb853b2d8e9fe018639a.tar.gz
dexon-sol-tools-dca572e74442534dc9f1bb853b2d8e9fe018639a.tar.bz2
dexon-sol-tools-dca572e74442534dc9f1bb853b2d8e9fe018639a.tar.lz
dexon-sol-tools-dca572e74442534dc9f1bb853b2d8e9fe018639a.tar.xz
dexon-sol-tools-dca572e74442534dc9f1bb853b2d8e9fe018639a.tar.zst
dexon-sol-tools-dca572e74442534dc9f1bb853b2d8e9fe018639a.zip
Fix the bug of not awaiting an async function
Diffstat (limited to 'src')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts
index 73ec0886c..7fedf3183 100644
--- a/src/contract_wrappers/exchange_wrapper.ts
+++ b/src/contract_wrappers/exchange_wrapper.ts
@@ -282,10 +282,9 @@ export class ExchangeWrapper extends ContractWrapper {
orderFillOrKillRequestsSchema,
);
const exchangeInstance = await this.getExchangeContractAsync();
- _.each(orderFillOrKillRequests, request => {
- this.validateFillOrKillOrderAndThrowIfInvalidAsync(request.signedOrder,
- exchangeInstance.address,
- request.fillTakerAmount);
+ _.each(orderFillOrKillRequests, async request => {
+ await this.validateFillOrKillOrderAndThrowIfInvalidAsync(request.signedOrder, exchangeInstance.address,
+ request.fillTakerAmount);
});
const orderAddressesValuesAndTakerTokenFillAmounts = _.map(orderFillOrKillRequests, request => {