Skip to content

Commit 067e616

Browse files
authored
Added impl param (#70)
* bumped version * added impl param
1 parent dc27299 commit 067e616

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

contracts/contracts-registry/pools/AbstractPoolContractsRegistry.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ abstract contract AbstractPoolContractsRegistry is Initializable, AbstractDepend
124124
) internal virtual {
125125
for (uint256 i = 0; i < names_.length; i++) {
126126
if (address(_beacons[names_[i]]) == address(0)) {
127-
_beacons[names_[i]] = ProxyBeacon(_deployProxyBeacon());
127+
_beacons[names_[i]] = ProxyBeacon(_deployProxyBeacon(newImplementations_[i]));
128128
}
129129

130130
if (_beacons[names_[i]].implementation() != newImplementations_[i]) {
@@ -184,9 +184,10 @@ abstract contract AbstractPoolContractsRegistry is Initializable, AbstractDepend
184184

185185
/**
186186
* @notice The utility function to deploy a Proxy Beacon contract to be used within the registry
187+
* @param implementation_ the address of the implementation
187188
* @return the address of a Proxy Beacon
188189
*/
189-
function _deployProxyBeacon() internal virtual returns (address) {
190+
function _deployProxyBeacon(address implementation_) internal virtual returns (address) {
190191
return address(new ProxyBeacon());
191192
}
192193
}

contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@solarity/solidity-lib",
3-
"version": "2.6.2",
3+
"version": "2.6.3",
44
"license": "MIT",
55
"author": "Distributed Lab",
66
"readme": "README.md",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@solarity/solidity-lib",
3-
"version": "2.6.2",
3+
"version": "2.6.3",
44
"license": "MIT",
55
"author": "Distributed Lab",
66
"description": "Solidity Library by Distributed Lab",

0 commit comments

Comments
 (0)