Remove runtime check of ERC1967 storage slots (#3455)
This commit is contained in:
@ -20,7 +20,6 @@ contract ERC1967Proxy is Proxy, ERC1967Upgrade {
|
||||
* 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));
|
||||
_upgradeToAndCall(_logic, _data, false);
|
||||
}
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ contract BeaconProxy is Proxy, ERC1967Upgrade {
|
||||
* - `beacon` must be a contract with the interface {IBeacon}.
|
||||
*/
|
||||
constructor(address beacon, bytes memory data) payable {
|
||||
assert(_BEACON_SLOT == bytes32(uint256(keccak256("eip1967.proxy.beacon")) - 1));
|
||||
_upgradeBeaconToAndCall(beacon, data, false);
|
||||
}
|
||||
|
||||
|
||||
@ -36,7 +36,6 @@ contract TransparentUpgradeableProxy is ERC1967Proxy {
|
||||
address admin_,
|
||||
bytes memory _data
|
||||
) payable ERC1967Proxy(_logic, _data) {
|
||||
assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
|
||||
_changeAdmin(admin_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user