@@ -3,7 +3,6 @@ pragma solidity ^0.8.20;
33
44import { BaseCreate2Script } from "create2-helpers/BaseCreate2Script.sol " ;
55import { Script, console2 } from "forge-std/Script.sol " ;
6- import { console } from "forge-std/console.sol " ;
76import {
87 MINIMAL_PROXY_OZ_ADDRESS,
98 MINIMAL_PROXY_OZ_SALT,
@@ -19,16 +18,16 @@ import { MinimalUpgradeableProxySolady } from "src/MinimalUpgradeableProxySolady
1918contract Deploy is BaseCreate2Script {
2019
2120 function run () public {
22- console .log ("ProxyFactory initcode hash: " );
23- console .logBytes32 (
21+ console2 .log ("ProxyFactory initcode hash: " );
22+ console2 .logBytes32 (
2423 keccak256 (abi.encodePacked (type (DeterministicProxyFactory).creationCode))
2524 );
26- console .log ("MinimalUpgradeableProxySolady initcode hash: " );
27- console .logBytes32 (
25+ console2 .log ("MinimalUpgradeableProxySolady initcode hash: " );
26+ console2 .logBytes32 (
2827 keccak256 (abi.encodePacked (type (MinimalUpgradeableProxySolady).creationCode))
2928 );
30- console .log ("MinimalUpgradeableProxyOZ initcode hash: " );
31- console .logBytes32 (
29+ console2 .log ("MinimalUpgradeableProxyOZ initcode hash: " );
30+ console2 .logBytes32 (
3231 keccak256 (abi.encodePacked (type (MinimalUpgradeableProxyOZ).creationCode))
3332 );
3433
@@ -37,13 +36,15 @@ contract Deploy is BaseCreate2Script {
3736 for (uint256 i = 0 ; i < networks.length ; i++ ) {
3837 rpcUrls[i] = getChain (networks[i]).rpcUrl;
3938 }
40- runOnNetworks (this . _run, rpcUrls);
39+ runOnNetworks (_run, rpcUrls);
4140 }
4241
43- function _run () public {
42+ function _run () internal {
43+ console2.log ("Deploying DeterministicProxyFactory " );
4444 address proxyFactoryAddr = _create2IfNotDeployed (
4545 deployer, PROXY_FACTORY_SALT, type (DeterministicProxyFactory).creationCode
4646 );
47+ console2.log ("Deployed DeterministicProxyFactory to address: " , proxyFactoryAddr);
4748 require (
4849 proxyFactoryAddr == PROXY_FACTORY_ADDRESS,
4950 "Deployed DeterministicProxyFactory to wrong address "
0 commit comments