aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/asset_proxy_owner.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-05-31 02:10:30 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-05-31 02:10:30 +0800
commit064608a8ef5c332e09fefaadd3b4c1155d4853c9 (patch)
tree8c6733a17294718756564e9becf488e727bc3fdb /packages/contracts/test/asset_proxy_owner.ts
parentb20e40dd6fd9964876a0006efe8b879a9a1d2118 (diff)
downloaddexon-sol-tools-064608a8ef5c332e09fefaadd3b4c1155d4853c9.tar.gz
dexon-sol-tools-064608a8ef5c332e09fefaadd3b4c1155d4853c9.tar.zst
dexon-sol-tools-064608a8ef5c332e09fefaadd3b4c1155d4853c9.zip
Add awaitTransactionSuccess where needed
Diffstat (limited to 'packages/contracts/test/asset_proxy_owner.ts')
-rw-r--r--packages/contracts/test/asset_proxy_owner.ts10
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 db68b5678..420cd9934 100644
--- a/packages/contracts/test/asset_proxy_owner.ts
+++ b/packages/contracts/test/asset_proxy_owner.ts
@@ -60,8 +60,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();