Skip to content

Commit 1ec25ef

Browse files
committed
fix: deploy script
1 parent 2e605fc commit 1ec25ef

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

script/releases/v1.8.0-hourglass/2-deployDestinationChainImpls.s.sol

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,15 @@ contract DeployDestinationChainImpls is EOADeployer, DeployDestinationChainProxi
4141
}
4242

4343
// 1. Deploy destination chain proxies
44-
DeployDestinationChainProxies._runAsMultisig();
45-
_unsafeResetHasPranked(); // reset hasPranked so we can use it in the execute()
44+
// Only deploy the proxies if they haven't been deployed yet
45+
/// @dev This is needed in the production environment tests since this step would fail if the proxies are already deployed
46+
if (!_areProxiesDeployed()) {
47+
DeployDestinationChainProxies._runAsMultisig();
48+
_unsafeResetHasPranked(); // reset hasPranked so we can use it in the execute()
49+
} else {
50+
// Since the proxies are already deployed, we need to update the env with the proper addresses
51+
_addContractsToEnv();
52+
}
4653

4754
// 2. Deploy destination chain impls
4855
runAsEOA();

0 commit comments

Comments
 (0)