aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-05-23 01:53:46 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-05-23 01:58:34 +0800
commit187fa71526148bbfb7a16229ef88c5d7726a2e0d (patch)
tree1cf63acfc3c0482e9d1509ed5d152bcf45bb7b31 /packages/contracts/test
parenta5d315ee2adac392875439f4902491559ad98c8b (diff)
downloaddexon-sol-tools-187fa71526148bbfb7a16229ef88c5d7726a2e0d.tar
dexon-sol-tools-187fa71526148bbfb7a16229ef88c5d7726a2e0d.tar.gz
dexon-sol-tools-187fa71526148bbfb7a16229ef88c5d7726a2e0d.tar.bz2
dexon-sol-tools-187fa71526148bbfb7a16229ef88c5d7726a2e0d.tar.lz
dexon-sol-tools-187fa71526148bbfb7a16229ef88c5d7726a2e0d.tar.xz
dexon-sol-tools-187fa71526148bbfb7a16229ef88c5d7726a2e0d.tar.zst
dexon-sol-tools-187fa71526148bbfb7a16229ef88c5d7726a2e0d.zip
Remove extra awaitTransactionMinedAsync calls
Diffstat (limited to 'packages/contracts/test')
-rw-r--r--packages/contracts/test/multi_sig_with_time_lock.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/contracts/test/multi_sig_with_time_lock.ts b/packages/contracts/test/multi_sig_with_time_lock.ts
index e467df0d7..8e7589afd 100644
--- a/packages/contracts/test/multi_sig_with_time_lock.ts
+++ b/packages/contracts/test/multi_sig_with_time_lock.ts
@@ -127,7 +127,7 @@ describe('MultiSigWalletWithTimeLock', () => {
args: [SECONDS_TIME_LOCKED.toNumber()],
};
let txHash = await multiSigWrapper.submitTransactionAsync(destination, from, dataParams);
- const subRes = await zeroEx.awaitTransactionMinedAsync(txHash);
+ const subRes = await zeroEx.awaitTransactionMinedAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
const log = abiDecoder.tryToDecodeLogOrNoop(subRes.logs[0]) as LogWithDecodedArgs<
SubmissionContractEventArgs
>;
@@ -139,8 +139,7 @@ describe('MultiSigWalletWithTimeLock', () => {
expect(initialSecondsTimeLocked).to.be.equal(0);
txHash = await multiSig.executeTransaction.sendTransactionAsync(txId, { from: owners[0] });
- await web3Wrapper.awaitTransactionMinedAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
- const res = await zeroEx.awaitTransactionMinedAsync(txHash);
+ const res = await zeroEx.awaitTransactionMinedAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
expect(res.logs).to.have.length(2);
const secondsTimeLocked = new BigNumber(await multiSig.secondsTimeLocked.callAsync());
@@ -183,7 +182,6 @@ describe('MultiSigWalletWithTimeLock', () => {
txHash = await multiSig.confirmTransaction.sendTransactionAsync(txId, {
from: owners[1],
});
- await web3Wrapper.awaitTransactionMinedAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
const confRes = await zeroEx.awaitTransactionMinedAsync(txHash, constants.AWAIT_TRANSACTION_MINED_MS);
expect(confRes.logs).to.have.length(2);
});