From c8dad01137ac718de721941ba86c1cc2075e2c5f Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 22 May 2018 13:19:29 -0700 Subject: Fix await calls --- packages/contracts/test/ether_token.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'packages/contracts/test/ether_token.ts') diff --git a/packages/contracts/test/ether_token.ts b/packages/contracts/test/ether_token.ts index 90538caf9..9b04dd187 100644 --- a/packages/contracts/test/ether_token.ts +++ b/packages/contracts/test/ether_token.ts @@ -61,10 +61,7 @@ describe('EtherToken', () => { const ethToDeposit = new BigNumber(Web3Wrapper.toWei(new BigNumber(1))); const txHash = await contractWrappers.etherToken.depositAsync(etherTokenAddress, ethToDeposit, account); - const receipt = await contractWrappers.awaitTransactionMinedAsync( - txHash, - constants.AWAIT_TRANSACTION_MINED_MS, - ); + const receipt = await web3Wrapper.awaitTransactionMinedAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS); const ethSpentOnGas = gasPrice.times(receipt.gasUsed); const finalEthBalance = await web3Wrapper.getBalanceInWeiAsync(account); @@ -100,10 +97,7 @@ describe('EtherToken', () => { gasLimit: constants.MAX_ETHERTOKEN_WITHDRAW_GAS, }, ); - const receipt = await contractWrappers.awaitTransactionMinedAsync( - txHash, - constants.AWAIT_TRANSACTION_MINED_MS, - ); + const receipt = await web3Wrapper.awaitTransactionMinedAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS); const ethSpentOnGas = gasPrice.times(receipt.gasUsed); const finalEthBalance = await web3Wrapper.getBalanceInWeiAsync(account); @@ -130,10 +124,7 @@ describe('EtherToken', () => { gasPrice, }); - const receipt = await contractWrappers.awaitTransactionMinedAsync( - txHash, - constants.AWAIT_TRANSACTION_MINED_MS, - ); + const receipt = await web3Wrapper.awaitTransactionMinedAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS); const ethSpentOnGas = gasPrice.times(receipt.gasUsed); const finalEthBalance = await web3Wrapper.getBalanceInWeiAsync(account); -- cgit v1.2.3