diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-08 05:46:03 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-08 05:46:03 +0800 |
commit | 0ddaabe377bef4559e6f02a1f06b1017cc5b3978 (patch) | |
tree | a3668403d57eb0dc1f970a46dc3407b08c492d9d /packages/contracts/test/exchange/transactions.ts | |
parent | 9bc6ebde4e4425799ed3ddfb50495029865e3ae8 (diff) | |
download | dexon-sol-tools-0ddaabe377bef4559e6f02a1f06b1017cc5b3978.tar dexon-sol-tools-0ddaabe377bef4559e6f02a1f06b1017cc5b3978.tar.gz dexon-sol-tools-0ddaabe377bef4559e6f02a1f06b1017cc5b3978.tar.bz2 dexon-sol-tools-0ddaabe377bef4559e6f02a1f06b1017cc5b3978.tar.lz dexon-sol-tools-0ddaabe377bef4559e6f02a1f06b1017cc5b3978.tar.xz dexon-sol-tools-0ddaabe377bef4559e6f02a1f06b1017cc5b3978.tar.zst dexon-sol-tools-0ddaabe377bef4559e6f02a1f06b1017cc5b3978.zip |
Add missing awaitTransactionSuccessAsync calls
Diffstat (limited to 'packages/contracts/test/exchange/transactions.ts')
-rw-r--r-- | packages/contracts/test/exchange/transactions.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/contracts/test/exchange/transactions.ts b/packages/contracts/test/exchange/transactions.ts index 60e674a95..7897fa558 100644 --- a/packages/contracts/test/exchange/transactions.ts +++ b/packages/contracts/test/exchange/transactions.ts @@ -216,6 +216,7 @@ describe('Exchange transactions', () => { await exchange.setSignatureValidatorApproval.sendTransactionAsync(whitelist.address, isApproved, { from: takerAddress, }), + constants.AWAIT_TRANSACTION_MINED_MS, ); const defaultOrderParams = { ...constants.STATIC_ORDER_PARAMS, @@ -238,6 +239,7 @@ describe('Exchange transactions', () => { const isApproved = true; await web3Wrapper.awaitTransactionSuccessAsync( await whitelist.updateWhitelistStatus.sendTransactionAsync(takerAddress, isApproved, { from: owner }), + constants.AWAIT_TRANSACTION_MINED_MS, ); orderWithoutExchangeAddress = orderUtils.getOrderWithoutExchangeAddress(signedOrder); @@ -258,6 +260,7 @@ describe('Exchange transactions', () => { const isApproved = true; await web3Wrapper.awaitTransactionSuccessAsync( await whitelist.updateWhitelistStatus.sendTransactionAsync(makerAddress, isApproved, { from: owner }), + constants.AWAIT_TRANSACTION_MINED_MS, ); orderWithoutExchangeAddress = orderUtils.getOrderWithoutExchangeAddress(signedOrder); @@ -278,10 +281,12 @@ describe('Exchange transactions', () => { const isApproved = true; await web3Wrapper.awaitTransactionSuccessAsync( await whitelist.updateWhitelistStatus.sendTransactionAsync(makerAddress, isApproved, { from: owner }), + constants.AWAIT_TRANSACTION_MINED_MS, ); await web3Wrapper.awaitTransactionSuccessAsync( await whitelist.updateWhitelistStatus.sendTransactionAsync(takerAddress, isApproved, { from: owner }), + constants.AWAIT_TRANSACTION_MINED_MS, ); orderWithoutExchangeAddress = orderUtils.getOrderWithoutExchangeAddress(signedOrder); @@ -295,6 +300,7 @@ describe('Exchange transactions', () => { signedOrder.signature, { from: takerAddress }, ), + constants.AWAIT_TRANSACTION_MINED_MS, ); const newBalances = await erc20Wrapper.getBalancesAsync(); |