BadBeaconUpgradeable.sol 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../proxy/utils/Initializable.sol";
  4. contract BadBeaconNoImplUpgradeable is Initializable { function __BadBeaconNoImpl_init() internal onlyInitializing {
  5. }
  6. function __BadBeaconNoImpl_init_unchained() internal onlyInitializing {
  7. }
  8. /**
  9. * @dev This empty reserved space is put in place to allow future versions to add new
  10. * variables without shifting down storage in the inheritance chain.
  11. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
  12. */
  13. uint256[50] private __gap;
  14. }
  15. contract BadBeaconNotContractUpgradeable is Initializable {
  16. function __BadBeaconNotContract_init() internal onlyInitializing {
  17. }
  18. function __BadBeaconNotContract_init_unchained() internal onlyInitializing {
  19. }
  20. function implementation() external pure returns (address) {
  21. return address(0x1);
  22. }
  23. /**
  24. * @dev This empty reserved space is put in place to allow future versions to add new
  25. * variables without shifting down storage in the inheritance chain.
  26. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
  27. */
  28. uint256[50] private __gap;
  29. }