aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/exchange/transactions.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-05-22 07:39:07 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-05-22 07:52:49 +0800
commit2c496a92adaef4132f6b0a135e61bad7b26b18bd (patch)
tree15466ce417120907a7b950c22e8e23230c09f746 /packages/contracts/test/exchange/transactions.ts
parent4ca8903a21d5a78ace5bff3fc5bbc917e369cbfe (diff)
downloaddexon-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.ts5
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;