diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-22 07:39:07 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-22 07:52:49 +0800 |
commit | 2c496a92adaef4132f6b0a135e61bad7b26b18bd (patch) | |
tree | 15466ce417120907a7b950c22e8e23230c09f746 /packages/contracts/test/exchange/transactions.ts | |
parent | 4ca8903a21d5a78ace5bff3fc5bbc917e369cbfe (diff) | |
download | dexon-sol-tools-2c496a92adaef4132f6b0a135e61bad7b26b18bd.tar dexon-sol-tools-2c496a92adaef4132f6b0a135e61bad7b26b18bd.tar.gz dexon-sol-tools-2c496a92adaef4132f6b0a135e61bad7b26b18bd.tar.bz2 dexon-sol-tools-2c496a92adaef4132f6b0a135e61bad7b26b18bd.tar.lz dexon-sol-tools-2c496a92adaef4132f6b0a135e61bad7b26b18bd.tar.xz dexon-sol-tools-2c496a92adaef4132f6b0a135e61bad7b26b18bd.tar.zst dexon-sol-tools-2c496a92adaef4132f6b0a135e61bad7b26b18bd.zip |
Add awaitTransactionMinedAsync after every sent transaction
Diffstat (limited to 'packages/contracts/test/exchange/transactions.ts')
-rw-r--r-- | packages/contracts/test/exchange/transactions.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/contracts/test/exchange/transactions.ts b/packages/contracts/test/exchange/transactions.ts index c98a3dee5..798c8283b 100644 --- a/packages/contracts/test/exchange/transactions.ts +++ b/packages/contracts/test/exchange/transactions.ts @@ -90,7 +90,10 @@ describe('Exchange transactions', () => { exchangeWrapper = new ExchangeWrapper(exchange, zeroEx); await exchangeWrapper.registerAssetProxyAsync(AssetProxyId.ERC20, erc20Proxy.address, owner); - await erc20Proxy.addAuthorizedAddress.sendTransactionAsync(exchange.address, { from: owner }); + await web3Wrapper.awaitTransactionMinedAsync( + await erc20Proxy.addAuthorizedAddress.sendTransactionAsync(exchange.address, { from: owner }), + constants.AWAIT_TRANSACTION_MINED_MS, + ); defaultMakerTokenAddress = erc20TokenA.address; defaultTakerTokenAddress = erc20TokenB.address; |