aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/fill_scenarios.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-07-04 03:28:34 +0800
committerGitHub <noreply@github.com>2017-07-04 03:28:34 +0800
commitd4cef89587ef8ea0f7fbab1146c4524e8f588eac (patch)
tree93dcf602b5a738bad03c121384707fcf19518310 /test/utils/fill_scenarios.ts
parentd506a1f98562dd11ecff5e936a93fce6d14e48a9 (diff)
parent8204409c6d6bf773aa8ebb38006a3975ed43a684 (diff)
downloaddexon-sol-tools-d4cef89587ef8ea0f7fbab1146c4524e8f588eac.tar
dexon-sol-tools-d4cef89587ef8ea0f7fbab1146c4524e8f588eac.tar.gz
dexon-sol-tools-d4cef89587ef8ea0f7fbab1146c4524e8f588eac.tar.bz2
dexon-sol-tools-d4cef89587ef8ea0f7fbab1146c4524e8f588eac.tar.lz
dexon-sol-tools-d4cef89587ef8ea0f7fbab1146c4524e8f588eac.tar.xz
dexon-sol-tools-d4cef89587ef8ea0f7fbab1146c4524e8f588eac.tar.zst
dexon-sol-tools-d4cef89587ef8ea0f7fbab1146c4524e8f588eac.zip
Merge pull request #82 from 0xProject/add-exchange-address-to-order-struct
Allow multiple Exchange contracts and multiple artifacts
Diffstat (limited to 'test/utils/fill_scenarios.ts')
-rw-r--r--test/utils/fill_scenarios.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/utils/fill_scenarios.ts b/test/utils/fill_scenarios.ts
index b8ad7eb12..65a912955 100644
--- a/test/utils/fill_scenarios.ts
+++ b/test/utils/fill_scenarios.ts
@@ -9,12 +9,15 @@ export class FillScenarios {
private tokens: Token[];
private coinbase: string;
private zrxTokenAddress: string;
- constructor(zeroEx: ZeroEx, userAddresses: string[], tokens: Token[], zrxTokenAddress: string) {
+ private exchangeContractAddress: string;
+ constructor(zeroEx: ZeroEx, userAddresses: string[],
+ tokens: Token[], zrxTokenAddress: string, exchangeContractAddress: string) {
this.zeroEx = zeroEx;
this.userAddresses = userAddresses;
this.tokens = tokens;
this.coinbase = userAddresses[0];
this.zrxTokenAddress = zrxTokenAddress;
+ this.exchangeContractAddress = exchangeContractAddress;
}
public async createFillableSignedOrderAsync(makerTokenAddress: string, takerTokenAddress: string,
makerAddress: string, takerAddress: string,
@@ -103,7 +106,7 @@ export class FillScenarios {
const signedOrder = await orderFactory.createSignedOrderAsync(this.zeroEx,
makerAddress, takerAddress, makerFee, takerFee,
makerFillableAmount, makerTokenAddress, takerFillableAmount, takerTokenAddress,
- feeRecepient, expirationUnixTimestampSec);
+ this.exchangeContractAddress, feeRecepient, expirationUnixTimestampSec);
return signedOrder;
}
}