diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-07 19:27:36 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-07 19:27:36 +0800 |
commit | d3a74e51e37ab8618516a52e9161ea5dd055479a (patch) | |
tree | 816c84dee682ac3354a6e6cd17afd7ef8e043f2f /test | |
parent | 9ae2e0c1aec5ac989eca652aa8c329114bcffccf (diff) | |
download | dexon-0x-contracts-d3a74e51e37ab8618516a52e9161ea5dd055479a.tar.gz dexon-0x-contracts-d3a74e51e37ab8618516a52e9161ea5dd055479a.tar.zst dexon-0x-contracts-d3a74e51e37ab8618516a52e9161ea5dd055479a.zip |
Fix tests with removed shouldCheckTransfer
Diffstat (limited to 'test')
-rw-r--r-- | test/exchange_wrapper_test.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index ff2121de1..1186345be 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -128,7 +128,6 @@ describe('ExchangeWrapper', () => { let takerAddress: string; let feeRecipient: string; const fillTakerAmount = new BigNumber(5); - const shouldCheckTransfer = false; before(async () => { [coinbase, makerAddress, takerAddress, feeRecipient] = userAddresses; tokens = await zeroEx.tokenRegistry.getTokensAsync(); @@ -150,7 +149,7 @@ describe('ExchangeWrapper', () => { await zeroEx.token.setProxyAllowanceAsync(makerTokenAddress, makerAddress, tooLargeFillAmount); return expect(zeroEx.exchange.fillOrKillOrderAsync( - signedOrder, tooLargeFillAmount, shouldCheckTransfer, takerAddress, + signedOrder, tooLargeFillAmount, takerAddress, )).to.be.rejectedWith(ExchangeContractErrs.INSUFFICIENT_REMAINING_FILL_AMOUNT); }); }); @@ -168,8 +167,7 @@ describe('ExchangeWrapper', () => { .to.be.bignumber.equal(0); expect(await zeroEx.token.getBalanceAsync(takerTokenAddress, takerAddress)) .to.be.bignumber.equal(fillableAmount); - await zeroEx.exchange.fillOrKillOrderAsync(signedOrder, fillTakerAmount, - shouldCheckTransfer, takerAddress); + await zeroEx.exchange.fillOrKillOrderAsync(signedOrder, fillTakerAmount, takerAddress); expect(await zeroEx.token.getBalanceAsync(makerTokenAddress, makerAddress)) .to.be.bignumber.equal(fillableAmount.minus(fillTakerAmount)); expect(await zeroEx.token.getBalanceAsync(takerTokenAddress, makerAddress)) @@ -185,8 +183,7 @@ describe('ExchangeWrapper', () => { makerTokenAddress, takerTokenAddress, makerAddress, takerAddress, fillableAmount, ); const partialFillAmount = new BigNumber(3); - await zeroEx.exchange.fillOrderAsync(signedOrder, partialFillAmount, - shouldCheckTransfer, takerAddress); + await zeroEx.exchange.fillOrKillOrderAsync(signedOrder, partialFillAmount, takerAddress); expect(await zeroEx.token.getBalanceAsync(makerTokenAddress, makerAddress)) .to.be.bignumber.equal(fillableAmount.minus(partialFillAmount)); expect(await zeroEx.token.getBalanceAsync(takerTokenAddress, makerAddress)) |