aboutsummaryrefslogtreecommitdiffstats
path: root/test/exchange_wrapper_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-01 20:57:34 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-01 20:57:34 +0800
commit75d0b69db294a58b8fdca330d4724ecf758d65f2 (patch)
tree58c6587628f71b48533ccd21621649a4ee6eb3b8 /test/exchange_wrapper_test.ts
parentef7ac6ac2df34cc45bce461bbbf0e83be5187aed (diff)
downloaddexon-sol-tools-75d0b69db294a58b8fdca330d4724ecf758d65f2.tar
dexon-sol-tools-75d0b69db294a58b8fdca330d4724ecf758d65f2.tar.gz
dexon-sol-tools-75d0b69db294a58b8fdca330d4724ecf758d65f2.tar.bz2
dexon-sol-tools-75d0b69db294a58b8fdca330d4724ecf758d65f2.tar.lz
dexon-sol-tools-75d0b69db294a58b8fdca330d4724ecf758d65f2.tar.xz
dexon-sol-tools-75d0b69db294a58b8fdca330d4724ecf758d65f2.tar.zst
dexon-sol-tools-75d0b69db294a58b8fdca330d4724ecf758d65f2.zip
Add taker parameter to createSignedOrder
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r--test/exchange_wrapper_test.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index 352eb9e05..b2fb1894b 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -128,7 +128,9 @@ describe('ExchangeWrapper', () => {
});
describe('failed fills', () => {
it('should throw when the fill amount is zero', async () => {
- const signedOrder = await orderFactory.createSignedOrderAsync(zeroEx, networkId, userAddresses[0],
+ const maker = userAddresses[0];
+ const taker = userAddresses[1];
+ const signedOrder = await orderFactory.createSignedOrderAsync(zeroEx, networkId, maker, taker,
5, addressBySymbol.MLN, 5, addressBySymbol.GNT);
const fillAmount = new BigNumber(0);
expect(zeroEx.exchange.fillOrderAsync(signedOrder, fillAmount))
@@ -145,7 +147,7 @@ describe('ExchangeWrapper', () => {
await setAllowance(maker, 5, addressBySymbol.MLN);
await setBalance(taker, 5, addressBySymbol.GNT);
await setAllowance(taker, 5, addressBySymbol.GNT);
- const signedOrder = await orderFactory.createSignedOrderAsync(zeroEx, networkId, maker,
+ const signedOrder = await orderFactory.createSignedOrderAsync(zeroEx, networkId, maker, taker,
5, addressBySymbol.MLN, 5, addressBySymbol.GNT);
const fillAmount = new BigNumber(5);
zeroEx.setDefaultAccount(taker);