aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-05-23 04:19:29 +0800
committerFabio Berger <me@fabioberger.com>2018-05-23 04:19:29 +0800
commitc8dad01137ac718de721941ba86c1cc2075e2c5f (patch)
tree0669fd9c20f86be5be43a0ce12252936403fcb01 /packages
parent5a09063adbb3fe506496b3413926d550575a85a5 (diff)
downloaddexon-sol-tools-c8dad01137ac718de721941ba86c1cc2075e2c5f.tar
dexon-sol-tools-c8dad01137ac718de721941ba86c1cc2075e2c5f.tar.gz
dexon-sol-tools-c8dad01137ac718de721941ba86c1cc2075e2c5f.tar.bz2
dexon-sol-tools-c8dad01137ac718de721941ba86c1cc2075e2c5f.tar.lz
dexon-sol-tools-c8dad01137ac718de721941ba86c1cc2075e2c5f.tar.xz
dexon-sol-tools-c8dad01137ac718de721941ba86c1cc2075e2c5f.tar.zst
dexon-sol-tools-c8dad01137ac718de721941ba86c1cc2075e2c5f.zip
Fix await calls
Diffstat (limited to 'packages')
-rw-r--r--packages/contracts/test/ether_token.ts15
1 files changed, 3 insertions, 12 deletions
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);