aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/fill_scenarios.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-02 02:04:12 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-02 02:04:12 +0800
commit511fa537ad3d2a669d5d680efb26012ca1b9c062 (patch)
tree2aa369f30f294c2c6a94387413d439d5d7271333 /test/utils/fill_scenarios.ts
parenta1be87058536f5ab10c68c570c1b9994defe52b1 (diff)
downloaddexon-sol-tools-511fa537ad3d2a669d5d680efb26012ca1b9c062.tar
dexon-sol-tools-511fa537ad3d2a669d5d680efb26012ca1b9c062.tar.gz
dexon-sol-tools-511fa537ad3d2a669d5d680efb26012ca1b9c062.tar.bz2
dexon-sol-tools-511fa537ad3d2a669d5d680efb26012ca1b9c062.tar.lz
dexon-sol-tools-511fa537ad3d2a669d5d680efb26012ca1b9c062.tar.xz
dexon-sol-tools-511fa537ad3d2a669d5d680efb26012ca1b9c062.tar.zst
dexon-sol-tools-511fa537ad3d2a669d5d680efb26012ca1b9c062.zip
Work
Diffstat (limited to 'test/utils/fill_scenarios.ts')
-rw-r--r--test/utils/fill_scenarios.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/utils/fill_scenarios.ts b/test/utils/fill_scenarios.ts
index 8447c8c15..ac233ad50 100644
--- a/test/utils/fill_scenarios.ts
+++ b/test/utils/fill_scenarios.ts
@@ -12,17 +12,17 @@ export class FillScenarios {
this.userAddresses = userAddresses;
this.tokens = tokens;
}
- public async createAFillableSignedOrderAsync(takerAddress: string, fillableAmount: BigNumber.BigNumber,
+ public async createAFillableSignedOrderAsync(makerTokenAddress: string, takerTokenAddress: string,
+ takerAddress: string, fillableAmount: BigNumber.BigNumber,
expirationUnixTimestampSec?: BigNumber.BigNumber):
Promise<SignedOrder> {
const [makerAddress] = this.userAddresses;
- const [makerToken, takerToken] = this.tokens;
- await this.zeroEx.token.setProxyAllowanceAsync(makerToken.address, makerAddress, fillableAmount);
- await this.zeroEx.token.transferAsync(takerToken.address, makerAddress, takerAddress, fillableAmount);
- await this.zeroEx.token.setProxyAllowanceAsync(takerToken.address, takerAddress, fillableAmount);
+ await this.zeroEx.token.setProxyAllowanceAsync(makerTokenAddress, makerAddress, fillableAmount);
+ await this.zeroEx.token.transferAsync(takerTokenAddress, makerAddress, takerAddress, fillableAmount);
+ await this.zeroEx.token.setProxyAllowanceAsync(takerTokenAddress, takerAddress, fillableAmount);
const signedOrder = await orderFactory.createSignedOrderAsync(this.zeroEx, makerAddress,
- takerAddress, fillableAmount, makerToken.address, fillableAmount, takerToken.address,
+ takerAddress, fillableAmount, makerTokenAddress, fillableAmount, takerTokenAddress,
expirationUnixTimestampSec);
return signedOrder;
}