aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-06-06 21:53:18 +0800
committerFabio Berger <me@fabioberger.com>2017-06-06 21:53:18 +0800
commitdb5d59b06eadd7e48431dab5fdce3dda8c2fad54 (patch)
treef2d5bd81de95bd4be98a1c11e87910cbba18f283 /test
parent321e0765cb3cee989f5869992209cbd9d69c1c3d (diff)
downloaddexon-0x-contracts-db5d59b06eadd7e48431dab5fdce3dda8c2fad54.tar.gz
dexon-0x-contracts-db5d59b06eadd7e48431dab5fdce3dda8c2fad54.tar.zst
dexon-0x-contracts-db5d59b06eadd7e48431dab5fdce3dda8c2fad54.zip
Pass nonExistentSenderAddress so that we get the proper rejection
Diffstat (limited to 'test')
-rw-r--r--test/exchange_wrapper_test.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts
index e4b0d47f7..370e741b4 100644
--- a/test/exchange_wrapper_test.ts
+++ b/test/exchange_wrapper_test.ts
@@ -152,8 +152,9 @@ describe('ExchangeWrapper', () => {
const signedOrder = await fillScenarios.createFillableSignedOrderAsync(
makerTokenAddress, takerTokenAddress, makerAddress, takerAddress, fillableAmount,
);
+ const nonExistentSenderAddress = userAddresses[6];
return expect(zeroEx.exchange.fillOrderAsync(
- signedOrder, fillTakerAmount, shouldCheckTransfer, takerAddress,
+ signedOrder, fillTakerAmount, shouldCheckTransfer, nonExistentSenderAddress,
)).to.be.rejectedWith(ExchangeContractErrs.TRANSACTION_SENDER_IS_NOT_FILL_ORDER_TAKER);
});
it('should throw when order is expired', async () => {