diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-06 05:59:20 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-07 03:40:31 +0800 |
commit | 36b01fbdcfcda93d185e018e31a919c36f2848ac (patch) | |
tree | e6385f1de4cc632dfa96c7ea1bd32200fa36c7bd /packages/contracts/test/exchange/core.ts | |
parent | 45a3d8b75a72fc4104f5070361fb34027b66e7f3 (diff) | |
download | dexon-0x-contracts-36b01fbdcfcda93d185e018e31a919c36f2848ac.tar.gz dexon-0x-contracts-36b01fbdcfcda93d185e018e31a919c36f2848ac.tar.zst dexon-0x-contracts-36b01fbdcfcda93d185e018e31a919c36f2848ac.zip |
Add additional gas to calls to fillOrderNoThrow
Diffstat (limited to 'packages/contracts/test/exchange/core.ts')
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index c55321609..64221b63d 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -621,14 +621,7 @@ describe('Exchange core', () => { ); }); - // TODO(albrow): - // - // AssertionError: expected '9021000000000000000000' to equal '1042000000000000000000' - // + expected - actual - // - // -9021000000000000000000 - // +1042000000000000000000 - it.skip('should cancel only orders with a makerEpoch less than existing makerEpoch', async () => { + it('should cancel only orders with a makerEpoch less than existing makerEpoch', async () => { // Cancel all transactions with a makerEpoch less than 1 const makerEpoch = new BigNumber(1); await exchangeWrapper.cancelOrdersUpToAsync(makerEpoch, makerAddress); @@ -658,7 +651,9 @@ describe('Exchange core', () => { salt: new BigNumber(3), }), ]; - await exchangeWrapper.batchFillOrdersNoThrowAsync(signedOrders, takerAddress); + await exchangeWrapper.batchFillOrdersNoThrowAsync(signedOrders, takerAddress, { + gas: 490000, + }); const newBalances = await erc20Wrapper.getBalancesAsync(); const fillMakerAssetAmount = signedOrders[2].makerAssetAmount.add(signedOrders[3].makerAssetAmount); |