aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-12 22:02:18 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-10-12 22:02:18 +0800
commit74c6be369878bbb50c913ab2a8fd15b889d6f938 (patch)
treea23bea28518dcf71159c9828bc25d07606628081
parentd114613384599f69c6fe10bb3172ad9be7d086f3 (diff)
downloaddexon-sol-tools-74c6be369878bbb50c913ab2a8fd15b889d6f938.tar
dexon-sol-tools-74c6be369878bbb50c913ab2a8fd15b889d6f938.tar.gz
dexon-sol-tools-74c6be369878bbb50c913ab2a8fd15b889d6f938.tar.bz2
dexon-sol-tools-74c6be369878bbb50c913ab2a8fd15b889d6f938.tar.lz
dexon-sol-tools-74c6be369878bbb50c913ab2a8fd15b889d6f938.tar.xz
dexon-sol-tools-74c6be369878bbb50c913ab2a8fd15b889d6f938.tar.zst
dexon-sol-tools-74c6be369878bbb50c913ab2a8fd15b889d6f938.zip
Pass correct parameters to validation simulation
-rw-r--r--src/utils/order_validation_utils.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/order_validation_utils.ts b/src/utils/order_validation_utils.ts
index 5d14602db..1d9aac884 100644
--- a/src/utils/order_validation_utils.ts
+++ b/src/utils/order_validation_utils.ts
@@ -102,11 +102,11 @@ export class OrderValidationUtils {
fillTakerTokenAmount: BigNumber.BigNumber, senderAddress: string, zrxTokenAddress: string): Promise<void> {
const fillMakerTokenAmount = this.getFillMakerTokenAmount(signedOrder, fillTakerTokenAmount);
await exchangeTradeEmulator.transferFromAsync(
- signedOrder.makerTokenAddress, signedOrder.maker, signedOrder.taker, fillMakerTokenAmount,
+ signedOrder.makerTokenAddress, signedOrder.maker, senderAddress, fillMakerTokenAmount,
TradeSide.Maker, TransferType.Trade,
);
await exchangeTradeEmulator.transferFromAsync(
- signedOrder.takerTokenAddress, signedOrder.taker, signedOrder.maker, fillTakerTokenAmount,
+ signedOrder.takerTokenAddress, senderAddress, signedOrder.maker, fillTakerTokenAmount,
TradeSide.Taker, TransferType.Trade,
);
await exchangeTradeEmulator.transferFromAsync(
@@ -114,7 +114,7 @@ export class OrderValidationUtils {
TransferType.Fee,
);
await exchangeTradeEmulator.transferFromAsync(
- zrxTokenAddress, signedOrder.taker, signedOrder.feeRecipient, signedOrder.takerFee, TradeSide.Taker,
+ zrxTokenAddress, senderAddress, signedOrder.feeRecipient, signedOrder.takerFee, TradeSide.Taker,
TransferType.Fee,
);
}