ContextUpgradeable.sol 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
  3. pragma solidity ^0.8.0;
  4. import "../proxy/utils/Initializable.sol";
  5. /**
  6. * @dev Provides information about the current execution context, including the
  7. * sender of the transaction and its data. While these are generally available
  8. * via msg.sender and msg.data, they should not be accessed in such a direct
  9. * manner, since when dealing with meta-transactions the account sending and
  10. * paying for execution may not be the actual sender (as far as an application
  11. * is concerned).
  12. *
  13. * This contract is only required for intermediate, library-like contracts.
  14. */
  15. abstract contract ContextUpgradeable is Initializable {
  16. function __Context_init() internal onlyInitializing {
  17. __Context_init_unchained();
  18. }
  19. function __Context_init_unchained() internal onlyInitializing {
  20. }
  21. function _msgSender() internal view virtual returns (address) {
  22. return msg.sender;
  23. }
  24. function _msgData() internal view virtual returns (bytes calldata) {
  25. return msg.data;
  26. }
  27. uint256[50] private __gap;
  28. }