Improve TransparentUpgradeableProxy's transparency (#3977)

Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
Hadrien Croubois
2023-01-19 22:34:15 +01:00
committed by GitHub
parent afcdc58419
commit 2a62fb4a2d
4 changed files with 36 additions and 11 deletions

View File

@ -3,12 +3,11 @@
pragma solidity ^0.8.0;
/**
* @dev Implementation contract with an admin() function made to clash with
* @dev TransparentUpgradeableProxy's to test correct functioning of the
* @dev Transparent Proxy feature.
* @dev Implementation contract with a payable admin() function made to clash with TransparentUpgradeableProxy's to
* test correct functioning of the Transparent Proxy feature.
*/
contract ClashingImplementation {
function admin() external pure returns (address) {
function admin() external payable returns (address) {
return 0x0000000000000000000000000000000011111142;
}