mirror of
https://github.com/tornadocash/relayer-registry.git
synced 2025-01-16 08:01:10 +01:00
24 lines
663 B
Solidity
24 lines
663 B
Solidity
|
// SPDX-License-Identifier: MIT
|
||
|
pragma solidity ^0.7.0;
|
||
|
|
||
|
import "@openzeppelin/contracts/proxy/TransparentUpgradeableProxy.sol";
|
||
|
|
||
|
/**
|
||
|
* @dev TransparentUpgradeableProxy where admin is allowed to call implementation methods.
|
||
|
*/
|
||
|
contract AdminUpgradeableProxy is TransparentUpgradeableProxy {
|
||
|
/**
|
||
|
* @dev Initializes an upgradeable proxy backed by the implementation at `_logic`.
|
||
|
*/
|
||
|
constructor(
|
||
|
address _logic,
|
||
|
address _admin,
|
||
|
bytes memory _data
|
||
|
) payable TransparentUpgradeableProxy(_logic, _admin, _data) {}
|
||
|
|
||
|
/**
|
||
|
* @dev Override to allow admin access the fallback function.
|
||
|
*/
|
||
|
function _beforeFallback() internal override {}
|
||
|
}
|