Skip to content

Commit

Permalink
fix: AccessControl deployment wait for upgrade mining
Browse files Browse the repository at this point in the history
  • Loading branch information
vicnaum committed Oct 28, 2022
1 parent fd40779 commit 61883ab
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tasks/deploy-access-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,8 @@ task('deploy-access-control', 'deploys the Access Control contract with explorer
);

proxy = TransparentUpgradeableProxy__factory.connect(proxyAddress, deployer);
try {
await proxy.upgradeToAndCall(accessControlImpl.address, data);
} catch (err) {
console.log(err);
throw err;
}
const tx = await proxy.upgradeToAndCall(accessControlImpl.address, data);
await tx.wait(3);

console.log('\n\t Looks like the upgrade succeeded!');

Expand Down

0 comments on commit 61883ab

Please sign in to comment.