|
@@ -30,9 +30,9 @@ contract TransparentUpgradeableProxy is UpgradeableProxy {
|
|
|
* @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and
|
|
|
* optionally initialized with `_data` as explained in {UpgradeableProxy-constructor}.
|
|
|
*/
|
|
|
- constructor(address _logic, address _admin, bytes memory _data) payable UpgradeableProxy(_logic, _data) {
|
|
|
+ constructor(address _logic, address admin_, bytes memory _data) payable UpgradeableProxy(_logic, _data) {
|
|
|
assert(_ADMIN_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
|
|
|
- _setAdmin(_admin);
|
|
|
+ _setAdmin(admin_);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -67,8 +67,8 @@ contract TransparentUpgradeableProxy is UpgradeableProxy {
|
|
|
* https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
|
|
|
* `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`
|
|
|
*/
|
|
|
- function admin() external ifAdmin returns (address) {
|
|
|
- return _admin();
|
|
|
+ function admin() external ifAdmin returns (address admin_) {
|
|
|
+ admin_ = _admin();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -80,8 +80,8 @@ contract TransparentUpgradeableProxy is UpgradeableProxy {
|
|
|
* https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.
|
|
|
* `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`
|
|
|
*/
|
|
|
- function implementation() external ifAdmin returns (address) {
|
|
|
- return _implementation();
|
|
|
+ function implementation() external ifAdmin returns (address implementation_) {
|
|
|
+ implementation_ = _implementation();
|
|
|
}
|
|
|
|
|
|
/**
|