diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-31 13:28:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-31 13:28:37 +0800 |
commit | ae47da3801634a17eb25e658272f60528cc06ead (patch) | |
tree | 803e4cbaf892092ad9c62e4d4539fc6fcf85c085 /packages/contracts/test/asset_proxy_owner.ts | |
parent | 5b31d0aa3635ea524fb42d73cd6c713887dfef6a (diff) | |
parent | a6d669453f9af7993bdd132862fa5d2da18a62f7 (diff) | |
download | dexon-0x-contracts-ae47da3801634a17eb25e658272f60528cc06ead.tar.gz dexon-0x-contracts-ae47da3801634a17eb25e658272f60528cc06ead.tar.zst dexon-0x-contracts-ae47da3801634a17eb25e658272f60528cc06ead.zip |
Merge pull request #640 from 0xProject/await-transaction-success
Add awaitTransactionSuccess where needed
Diffstat (limited to 'packages/contracts/test/asset_proxy_owner.ts')
-rw-r--r-- | packages/contracts/test/asset_proxy_owner.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/contracts/test/asset_proxy_owner.ts b/packages/contracts/test/asset_proxy_owner.ts index 43c5da512..f95679e20 100644 --- a/packages/contracts/test/asset_proxy_owner.ts +++ b/packages/contracts/test/asset_proxy_owner.ts @@ -66,8 +66,14 @@ describe('AssetProxyOwner', () => { SECONDS_TIME_LOCKED, ); multiSigWrapper = new MultiSigWrapper(multiSig, provider); - await erc20Proxy.transferOwnership.sendTransactionAsync(multiSig.address, { from: initialOwner }); - await erc721Proxy.transferOwnership.sendTransactionAsync(multiSig.address, { from: initialOwner }); + await web3Wrapper.awaitTransactionSuccessAsync( + await erc20Proxy.transferOwnership.sendTransactionAsync(multiSig.address, { from: initialOwner }), + constants.AWAIT_TRANSACTION_MINED_MS, + ); + await web3Wrapper.awaitTransactionSuccessAsync( + await erc721Proxy.transferOwnership.sendTransactionAsync(multiSig.address, { from: initialOwner }), + constants.AWAIT_TRANSACTION_MINED_MS, + ); }); beforeEach(async () => { await blockchainLifecycle.startAsync(); |