|
|
|
@ -557,7 +557,7 @@ abstract contract ERC1967Upgrade { |
|
|
|
|
* @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`. |
|
|
|
|
* |
|
|
|
|
* If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded |
|
|
|
|
* function call, and allows initializating the storage of the proxy like a Solidity constructor. |
|
|
|
|
* function call, and allows initializing the storage of the proxy like a Solidity constructor. |
|
|
|
|
*/ |
|
|
|
|
constructor(address _logic, bytes memory _data) payable { |
|
|
|
|
assert(_IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1)); |
|
|
|
@ -570,4 +570,4 @@ abstract contract ERC1967Upgrade { |
|
|
|
|
function _implementation() internal view virtual override returns (address impl) { |
|
|
|
|
return ERC1967Upgrade._getImplementation(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|