Adapt proxies to Contracts conventions (#2345)

This commit is contained in:
Francisco Giordano
2020-09-03 13:49:47 -03:00
committed by GitHub
parent 6bc2ae3731
commit 91f16a7e47
4 changed files with 9 additions and 9 deletions

View File

@ -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;