diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-31 13:28:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-31 13:28:37 +0800 |
commit | ae47da3801634a17eb25e658272f60528cc06ead (patch) | |
tree | 803e4cbaf892092ad9c62e4d4539fc6fcf85c085 /packages/contracts/test/ether_token.ts | |
parent | 5b31d0aa3635ea524fb42d73cd6c713887dfef6a (diff) | |
parent | a6d669453f9af7993bdd132862fa5d2da18a62f7 (diff) | |
download | dexon-sol-tools-ae47da3801634a17eb25e658272f60528cc06ead.tar dexon-sol-tools-ae47da3801634a17eb25e658272f60528cc06ead.tar.gz dexon-sol-tools-ae47da3801634a17eb25e658272f60528cc06ead.tar.bz2 dexon-sol-tools-ae47da3801634a17eb25e658272f60528cc06ead.tar.lz dexon-sol-tools-ae47da3801634a17eb25e658272f60528cc06ead.tar.xz dexon-sol-tools-ae47da3801634a17eb25e658272f60528cc06ead.tar.zst dexon-sol-tools-ae47da3801634a17eb25e658272f60528cc06ead.zip |
Merge pull request #640 from 0xProject/await-transaction-success
Add awaitTransactionSuccess where needed
Diffstat (limited to 'packages/contracts/test/ether_token.ts')
-rw-r--r-- | packages/contracts/test/ether_token.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/contracts/test/ether_token.ts b/packages/contracts/test/ether_token.ts index 10dd635fe..4e52b658f 100644 --- a/packages/contracts/test/ether_token.ts +++ b/packages/contracts/test/ether_token.ts @@ -83,7 +83,10 @@ describe('EtherToken', () => { it('should convert ether tokens to ether with sufficient balance', async () => { const ethToDeposit = new BigNumber(Web3Wrapper.toWei(new BigNumber(1))); - await etherToken.deposit.sendTransactionAsync({ value: ethToDeposit }); + await web3Wrapper.awaitTransactionSuccessAsync( + await etherToken.deposit.sendTransactionAsync({ value: ethToDeposit }), + constants.AWAIT_TRANSACTION_MINED_MS, + ); const initEthTokenBalance = await etherToken.balanceOf.callAsync(account); const initEthBalance = await web3Wrapper.getBalanceInWeiAsync(account); const ethTokensToWithdraw = initEthTokenBalance; |