aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contract-wrappers/test/ether_token_wrapper_test.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-05-24 09:12:41 +0800
committerGitHub <noreply@github.com>2018-05-24 09:12:41 +0800
commit2f7ab3e32d1c54f42c435503426bc421fa89afd8 (patch)
treedfa0fb838fb4b1bdb36a45eaa820351bfaf1f04f /packages/contract-wrappers/test/ether_token_wrapper_test.ts
parent2f1a4042bf924cf5d07d724d5d1a1c0a2c181f4f (diff)
parentf6f2818a02d0ef1880f6e4391840659cc8dc2395 (diff)
downloaddexon-0x-contracts-2f7ab3e32d1c54f42c435503426bc421fa89afd8.tar
dexon-0x-contracts-2f7ab3e32d1c54f42c435503426bc421fa89afd8.tar.gz
dexon-0x-contracts-2f7ab3e32d1c54f42c435503426bc421fa89afd8.tar.bz2
dexon-0x-contracts-2f7ab3e32d1c54f42c435503426bc421fa89afd8.tar.lz
dexon-0x-contracts-2f7ab3e32d1c54f42c435503426bc421fa89afd8.tar.xz
dexon-0x-contracts-2f7ab3e32d1c54f42c435503426bc421fa89afd8.tar.zst
dexon-0x-contracts-2f7ab3e32d1c54f42c435503426bc421fa89afd8.zip
Merge pull request #613 from 0xProject/check-tx-receipt-status
Check transaction receipt status
Diffstat (limited to 'packages/contract-wrappers/test/ether_token_wrapper_test.ts')
-rw-r--r--packages/contract-wrappers/test/ether_token_wrapper_test.ts12
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 e06fe96e5..a2154c2bd 100644
--- a/packages/contract-wrappers/test/ether_token_wrapper_test.ts
+++ b/packages/contract-wrappers/test/ether_token_wrapper_test.ts
@@ -95,7 +95,7 @@ describe('EtherTokenWrapper', () => {
depositWeiAmount,
addressWithETH,
);
- await web3Wrapper.awaitTransactionMinedAsync(txHash);
+ await web3Wrapper.awaitTransactionSuccessAsync(txHash);
const postETHBalanceInWei = await web3Wrapper.getBalanceInWeiAsync(addressWithETH);
const postWETHBalanceInBaseUnits = await contractWrappers.token.getBalanceAsync(
@@ -137,7 +137,7 @@ describe('EtherTokenWrapper', () => {
depositWeiAmount,
addressWithETH,
);
- await web3Wrapper.awaitTransactionMinedAsync(txHash);
+ await web3Wrapper.awaitTransactionSuccessAsync(txHash);
const postETHBalance = await web3Wrapper.getBalanceInWeiAsync(addressWithETH);
const postWETHBalanceInBaseUnits = await contractWrappers.token.getBalanceAsync(
@@ -347,7 +347,7 @@ describe('EtherTokenWrapper', () => {
});
it('should get logs with decoded args emitted by Approval', async () => {
txHash = await contractWrappers.token.setUnlimitedProxyAllowanceAsync(etherTokenAddress, addressWithETH);
- await web3Wrapper.awaitTransactionMinedAsync(txHash);
+ await web3Wrapper.awaitTransactionSuccessAsync(txHash);
const eventName = EtherTokenEvents.Approval;
const indexFilterValues = {};
const logs = await contractWrappers.etherToken.getLogsAsync<ApprovalContractEventArgs>(
@@ -381,7 +381,7 @@ describe('EtherTokenWrapper', () => {
});
it('should only get the logs with the correct event name', async () => {
txHash = await contractWrappers.token.setUnlimitedProxyAllowanceAsync(etherTokenAddress, addressWithETH);
- await web3Wrapper.awaitTransactionMinedAsync(txHash);
+ await web3Wrapper.awaitTransactionSuccessAsync(txHash);
const differentEventName = EtherTokenEvents.Transfer;
const indexFilterValues = {};
const logs = await contractWrappers.etherToken.getLogsAsync(
@@ -394,12 +394,12 @@ describe('EtherTokenWrapper', () => {
});
it('should only get the logs with the correct indexed fields', async () => {
txHash = await contractWrappers.token.setUnlimitedProxyAllowanceAsync(etherTokenAddress, addressWithETH);
- await web3Wrapper.awaitTransactionMinedAsync(txHash);
+ await web3Wrapper.awaitTransactionSuccessAsync(txHash);
txHash = await contractWrappers.token.setUnlimitedProxyAllowanceAsync(
etherTokenAddress,
addressWithoutFunds,
);
- await web3Wrapper.awaitTransactionMinedAsync(txHash);
+ await web3Wrapper.awaitTransactionSuccessAsync(txHash);
const eventName = EtherTokenEvents.Approval;
const indexFilterValues = {
_owner: addressWithETH,