aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations/src/v2/migration.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/migrations/src/v2/migration.ts')
-rw-r--r--packages/migrations/src/v2/migration.ts16
1 files changed, 12 insertions, 4 deletions
diff --git a/packages/migrations/src/v2/migration.ts b/packages/migrations/src/v2/migration.ts
index 64f5d2d8b..f77063a1b 100644
--- a/packages/migrations/src/v2/migration.ts
+++ b/packages/migrations/src/v2/migration.ts
@@ -73,10 +73,18 @@ export const runV2MigrationsAsync = async (provider: Provider, artifactsDir: str
secondsRequired,
);
artifactsWriter.saveArtifact(assetProxyOwner);
- await erc20proxy.addAuthorizedAddress.sendTransactionAsync(exchange.address, { from: owner });
- await erc20proxy.transferOwnership.sendTransactionAsync(assetProxyOwner.address, { from: owner });
- await erc721proxy.addAuthorizedAddress.sendTransactionAsync(exchange.address, { from: owner });
- await erc721proxy.transferOwnership.sendTransactionAsync(assetProxyOwner.address, { from: owner });
+ await web3Wrapper.awaitTransactionSuccessAsync(
+ await erc20proxy.addAuthorizedAddress.sendTransactionAsync(exchange.address, { from: owner }),
+ );
+ await web3Wrapper.awaitTransactionSuccessAsync(
+ await erc20proxy.transferOwnership.sendTransactionAsync(assetProxyOwner.address, { from: owner }),
+ );
+ await web3Wrapper.awaitTransactionSuccessAsync(
+ await erc721proxy.addAuthorizedAddress.sendTransactionAsync(exchange.address, { from: owner }),
+ );
+ await web3Wrapper.awaitTransactionSuccessAsync(
+ await erc721proxy.transferOwnership.sendTransactionAsync(assetProxyOwner.address, { from: owner }),
+ );
// Dummy ERC20 tokens
for (const token of erc20TokenInfo) {