diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-29 21:41:58 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-06-29 22:52:55 +0800 |
commit | 5dea432ebf27cf35cb85823c8f7fdc81fe8ae4f6 (patch) | |
tree | 88c312292b8b5349efe3317bd1e7f1b32e0387f5 /packages/contract-wrappers/test/ether_token_wrapper_test.ts | |
parent | 016d82d766d2a15d02b2e93cf2d02a2a59e1feb4 (diff) | |
download | dexon-0x-contracts-5dea432ebf27cf35cb85823c8f7fdc81fe8ae4f6.tar dexon-0x-contracts-5dea432ebf27cf35cb85823c8f7fdc81fe8ae4f6.tar.gz dexon-0x-contracts-5dea432ebf27cf35cb85823c8f7fdc81fe8ae4f6.tar.bz2 dexon-0x-contracts-5dea432ebf27cf35cb85823c8f7fdc81fe8ae4f6.tar.lz dexon-0x-contracts-5dea432ebf27cf35cb85823c8f7fdc81fe8ae4f6.tar.xz dexon-0x-contracts-5dea432ebf27cf35cb85823c8f7fdc81fe8ae4f6.tar.zst dexon-0x-contracts-5dea432ebf27cf35cb85823c8f7fdc81fe8ae4f6.zip |
Set the interval to 0 in awaitTranscationSuccessAsync
Diffstat (limited to 'packages/contract-wrappers/test/ether_token_wrapper_test.ts')
-rw-r--r-- | packages/contract-wrappers/test/ether_token_wrapper_test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/contract-wrappers/test/ether_token_wrapper_test.ts b/packages/contract-wrappers/test/ether_token_wrapper_test.ts index 1e46f05d1..373d4e935 100644 --- a/packages/contract-wrappers/test/ether_token_wrapper_test.ts +++ b/packages/contract-wrappers/test/ether_token_wrapper_test.ts @@ -94,7 +94,7 @@ describe('EtherTokenWrapper', () => { depositWeiAmount, addressWithETH, ); - await web3Wrapper.awaitTransactionSuccessAsync(txHash); + await web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS); const postETHBalanceInWei = await web3Wrapper.getBalanceInWeiAsync(addressWithETH); const postWETHBalanceInBaseUnits = await contractWrappers.erc20Token.getBalanceAsync( @@ -139,7 +139,7 @@ describe('EtherTokenWrapper', () => { depositWeiAmount, addressWithETH, ); - await web3Wrapper.awaitTransactionSuccessAsync(txHash); + await web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS); const postETHBalance = await web3Wrapper.getBalanceInWeiAsync(addressWithETH); const postWETHBalanceInBaseUnits = await contractWrappers.erc20Token.getBalanceAsync( @@ -351,7 +351,7 @@ describe('EtherTokenWrapper', () => { etherTokenAddress, addressWithETH, ); - await web3Wrapper.awaitTransactionSuccessAsync(txHash); + await web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS); const eventName = WETH9Events.Approval; const indexFilterValues = {}; const logs = await contractWrappers.etherToken.getLogsAsync<WETH9ApprovalEventArgs>( @@ -388,7 +388,7 @@ describe('EtherTokenWrapper', () => { etherTokenAddress, addressWithETH, ); - await web3Wrapper.awaitTransactionSuccessAsync(txHash); + await web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS); const differentEventName = WETH9Events.Transfer; const indexFilterValues = {}; const logs = await contractWrappers.etherToken.getLogsAsync( @@ -404,12 +404,12 @@ describe('EtherTokenWrapper', () => { etherTokenAddress, addressWithETH, ); - await web3Wrapper.awaitTransactionSuccessAsync(txHash); + await web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS); txHash = await contractWrappers.erc20Token.setUnlimitedProxyAllowanceAsync( etherTokenAddress, addressWithoutFunds, ); - await web3Wrapper.awaitTransactionSuccessAsync(txHash); + await web3Wrapper.awaitTransactionSuccessAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS); const eventName = WETH9Events.Approval; const indexFilterValues = { _owner: addressWithETH, |