Adapt proxies to Contracts conventions (#2345)
This commit is contained in:
committed by
GitHub
parent
6bc2ae3731
commit
91f16a7e47
@ -67,7 +67,7 @@ contract UpgradeableProxy is Proxy {
|
||||
/**
|
||||
* @dev Stores a new address in the EIP1967 implementation slot.
|
||||
*/
|
||||
function _setImplementation(address newImplementation) internal {
|
||||
function _setImplementation(address newImplementation) private {
|
||||
require(Address.isContract(newImplementation), "UpgradeableProxy: new implementation is not a contract");
|
||||
|
||||
bytes32 slot = _IMPLEMENTATION_SLOT;
|
||||
|
||||
Reference in New Issue
Block a user