From c6903ece623987e123079a3acb8d8655688a7dc0 Mon Sep 17 00:00:00 2001 From: Sebastian Liu Date: Wed, 11 Dec 2024 13:51:48 -0800 Subject: [PATCH] fix(deploy helper): change helper fns' visibility to internal for reuse --- script/utils/DeployHelper.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/utils/DeployHelper.sol b/script/utils/DeployHelper.sol index 1ec1093..b12e163 100644 --- a/script/utils/DeployHelper.sol +++ b/script/utils/DeployHelper.sol @@ -902,20 +902,20 @@ contract DeployHelper is } /// @dev Get the deterministic deployed address of a contract with CREATE3 - function _getDeployedAddress(string memory name) private view returns (address) { + function _getDeployedAddress(string memory name) internal view returns (address) { return create3Deployer.getDeployed(_getSalt(name)); } /// @dev Load the implementation address from the proxy contract - function _loadProxyImpl(address proxy) private view returns (address) { + function _loadProxyImpl(address proxy) internal view returns (address) { return address(uint160(uint256(vm.load(proxy, IMPLEMENTATION_SLOT)))); } - function _predeploy(string memory contractKey) private view { + function _predeploy(string memory contractKey) internal view { if (writeDeploys) console2.log(string.concat("Deploying ", contractKey, "...")); } - function _postdeploy(string memory contractKey, address newAddress) private { + function _postdeploy(string memory contractKey, address newAddress) internal { if (writeDeploys) { _writeAddress(contractKey, newAddress); console2.log(string.concat(contractKey, " deployed to:"), newAddress);