tornado-contracts/contracts/Governance/v4-exploit-patch/AdminUpgradeableProxy.sol

25 lines
742 B
Solidity
Raw Permalink Normal View History

2024-03-29 21:52:45 +00:00
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.12;
2025-01-05 09:29:24 +00:00
import { TransparentUpgradeableProxy } from '@openzeppelin/contracts-v3/proxy/TransparentUpgradeableProxy.sol';
2024-03-29 21:52:45 +00:00
/**
* @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`.
*/
2025-01-05 09:29:24 +00:00
constructor(
address _logic,
address _admin,
bytes memory _data
) public payable TransparentUpgradeableProxy(_logic, _admin, _data) {}
2024-03-29 21:52:45 +00:00
/**
* @dev Override to allow admin access the fallback function.
*/
2025-01-05 09:29:24 +00:00
function _beforeFallback() internal override {}
2024-03-29 21:52:45 +00:00
}