From a07c3e3407139d8345c4553af5c1aed4d9e0a649 Mon Sep 17 00:00:00 2001 From: dovgopoly Date: Fri, 13 Oct 2023 17:01:35 +0300 Subject: [PATCH] added impl param --- .../pools/AbstractPoolContractsRegistry.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/contracts-registry/pools/AbstractPoolContractsRegistry.sol b/contracts/contracts-registry/pools/AbstractPoolContractsRegistry.sol index e1cf7f1e..3df701fd 100644 --- a/contracts/contracts-registry/pools/AbstractPoolContractsRegistry.sol +++ b/contracts/contracts-registry/pools/AbstractPoolContractsRegistry.sol @@ -124,7 +124,7 @@ abstract contract AbstractPoolContractsRegistry is Initializable, AbstractDepend ) internal virtual { for (uint256 i = 0; i < names_.length; i++) { if (address(_beacons[names_[i]]) == address(0)) { - _beacons[names_[i]] = ProxyBeacon(_deployProxyBeacon()); + _beacons[names_[i]] = ProxyBeacon(_deployProxyBeacon(newImplementations_[i])); } if (_beacons[names_[i]].implementation() != newImplementations_[i]) { @@ -184,9 +184,10 @@ abstract contract AbstractPoolContractsRegistry is Initializable, AbstractDepend /** * @notice The utility function to deploy a Proxy Beacon contract to be used within the registry + * @param implementation_ the address of the implementation * @return the address of a Proxy Beacon */ - function _deployProxyBeacon() internal virtual returns (address) { + function _deployProxyBeacon(address implementation_) internal virtual returns (address) { return address(new ProxyBeacon()); } }