Skip to content

Commit

Permalink
add UUPSProxy contract
Browse files Browse the repository at this point in the history
  • Loading branch information
najienka committed Jan 22, 2025
1 parent 8b150d3 commit 3946632
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/proxy/UUPSProxy.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;

import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol";

contract UUPSProxy is ERC1967Proxy {
constructor(address _implementation, bytes memory _data) ERC1967Proxy(_implementation, _data) {}

function getImplementation() external view returns (address) {
return _implementation();
}
}

0 comments on commit 3946632

Please sign in to comment.