diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-09-06 16:28:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-06 16:28:37 +0800 |
commit | f0a5ad2d2063fe8ba4682147ec2f73e2763b0275 (patch) | |
tree | 6b6c4e4e8a5b367f39687bf4fc7e9bbc237b4874 /test/ether_token_wrapper_test.ts | |
parent | 0275ac9dada35648ffb3b543f6ba2546117a3b63 (diff) | |
parent | 258b4fac31aee1bc0c26e42d62b10bd22c69c1b8 (diff) | |
download | dexon-sol-tools-f0a5ad2d2063fe8ba4682147ec2f73e2763b0275.tar dexon-sol-tools-f0a5ad2d2063fe8ba4682147ec2f73e2763b0275.tar.gz dexon-sol-tools-f0a5ad2d2063fe8ba4682147ec2f73e2763b0275.tar.bz2 dexon-sol-tools-f0a5ad2d2063fe8ba4682147ec2f73e2763b0275.tar.lz dexon-sol-tools-f0a5ad2d2063fe8ba4682147ec2f73e2763b0275.tar.xz dexon-sol-tools-f0a5ad2d2063fe8ba4682147ec2f73e2763b0275.tar.zst dexon-sol-tools-f0a5ad2d2063fe8ba4682147ec2f73e2763b0275.zip |
Merge pull request #151 from 0xProject/feature/remove-truffle-contracts
Remove truffle contracts dependency
Diffstat (limited to 'test/ether_token_wrapper_test.ts')
-rw-r--r-- | test/ether_token_wrapper_test.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ether_token_wrapper_test.ts b/test/ether_token_wrapper_test.ts index 601800cd1..f50aac48b 100644 --- a/test/ether_token_wrapper_test.ts +++ b/test/ether_token_wrapper_test.ts @@ -52,7 +52,8 @@ describe('EtherTokenWrapper', () => { expect(preETHBalance).to.be.bignumber.gt(0); expect(preWETHBalance).to.be.bignumber.equal(0); - await zeroEx.etherToken.depositAsync(depositWeiAmount, addressWithETH); + const txHash = await zeroEx.etherToken.depositAsync(depositWeiAmount, addressWithETH); + await zeroEx.awaitTransactionMinedAsync(txHash); const postETHBalanceInWei = await (zeroEx as any)._web3Wrapper.getBalanceInWeiAsync(addressWithETH); const postWETHBalanceInBaseUnits = await zeroEx.token.getBalanceAsync(wethContractAddress, addressWithETH); @@ -86,7 +87,8 @@ describe('EtherTokenWrapper', () => { expect(gasCost).to.be.bignumber.lte(MAX_REASONABLE_GAS_COST_IN_WEI); expect(preWETHBalance).to.be.bignumber.equal(depositWeiAmount); - await zeroEx.etherToken.withdrawAsync(depositWeiAmount, addressWithETH); + const txHash = await zeroEx.etherToken.withdrawAsync(depositWeiAmount, addressWithETH); + await zeroEx.awaitTransactionMinedAsync(txHash); const postETHBalance = await (zeroEx as any)._web3Wrapper.getBalanceInWeiAsync(addressWithETH); const postWETHBalanceInBaseUnits = await zeroEx.token.getBalanceAsync(wethContractAddress, addressWithETH); |