Skip to content

Commit

Permalink
Error for prediction if create3 not deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliusbtc authored Aug 11, 2023
1 parent c4c2c46 commit 941c2de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/contracts-core/script/utils/DeployerUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ contract DeployerUtils is Script {

/// @notice Predicts the deployment address for a contract.
function predictFactoryDeployment(string memory contractName) internal view returns (address) {
require(Address.isContract(address(FACTORY)), "Factory not deployed");
return FACTORY.getDeployed(broadcasterAddress, getDeploymentSalt(contractName));
}

Expand Down

0 comments on commit 941c2de

Please sign in to comment.